From 5edb048eed55001d2209c11bd31a7d4c044b2ff5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=A8=E8=90=BD=E5=9F=BA=E5=9B=B4=E8=99=BE?= <3161880837@qq.com> Date: Thu, 5 Feb 2026 21:03:35 +0800 Subject: [PATCH] =?UTF-8?q?fix(Rooster):=20=E4=BF=AE=E5=A4=8D=E8=93=84?= =?UTF-8?q?=E5=8A=9B=E6=94=BB=E5=87=BB=E7=B2=92=E5=AD=90=E6=95=88=E6=9E=9C?= =?UTF-8?q?=E5=92=8C=E5=88=9D=E5=A7=8B=E5=8C=96=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 调整蓄力攻击时粒子效果的速度缩放比例,并修复初始化时未设置默认值的问题 --- components/Characters/Rooster.tscn | 10 ++++++++++ scripts/Contents/Characters/Rooster.gd | 5 ++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/components/Characters/Rooster.tscn b/components/Characters/Rooster.tscn index 4a1f172..5d37d19 100644 --- a/components/Characters/Rooster.tscn +++ b/components/Characters/Rooster.tscn @@ -86,8 +86,18 @@ radius = 61.204575 [node name="Rooster" instance=ExtResource("1_e5pl8")] script = ExtResource("2_oqdqd") +defaultCooldownUnit = null +isBoss = null displayName = "公鸡" +sprintMultiplier = null +drops = null +dropCounts = null +appleCount = null +level = null +currentInvinsible = null useStatic = true +hurtAudioRate = null +health = null metadata/_edit_horizontal_guides_ = [-188.0] metadata/_edit_vertical_guides_ = [71.0] diff --git a/scripts/Contents/Characters/Rooster.gd b/scripts/Contents/Characters/Rooster.gd index 080397c..b22022f 100644 --- a/scripts/Contents/Characters/Rooster.gd +++ b/scripts/Contents/Characters/Rooster.gd @@ -52,8 +52,11 @@ func tryLaunch(action: String, weaponIndex: int): if weapon.chargable and weapon.canAttackBy(self): chargeStartTime[weaponIndex] = Time.get_ticks_msec() chargeParticle.emitting = true + chargeParticle.speed_scale = 1 if Input.is_action_pressed(action): - if !chargeStartTime.has(weaponIndex): + if chargeStartTime.has(weaponIndex): + chargeParticle.speed_scale += 0.01 + else: tryAttack(weaponIndex) if Input.is_action_just_released(action): if chargeStartTime.has(weaponIndex):