From c1a4b62688025cc27933101489d849a098e6e156 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: Sat, 22 Nov 2025 10:01:14 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E8=A7=92=E8=89=B2):=20=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E7=86=8A=E8=A7=92=E8=89=B2=E7=9A=84=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E5=92=8C=E8=A1=8C=E4=B8=BA=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除熊的基础移动速度设置,改为在不同阶段设置不同速度 - 调整熊各阶段的伤害倍率和攻击速度 - 修改熊的跟随距离从400降低到250 - 修复永恒彩虹子弹的伤害属性名从speed改为baseDamage - 确保熊在未进入特殊阶段时默认设置为阶段0 --- components/Bullets/ForeverRainbow.tscn | 2 +- scripts/Contents/Characters/Bear.gd | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/components/Bullets/ForeverRainbow.tscn b/components/Bullets/ForeverRainbow.tscn index 867ea8d..f6e44a5 100644 --- a/components/Bullets/ForeverRainbow.tscn +++ b/components/Bullets/ForeverRainbow.tscn @@ -97,7 +97,7 @@ height = 224.0 script = ExtResource("2_wwmq8") allColor = SubResource("GradientTexture1D_gcnu1") displayName = "永恒彩虹" -speed = 2.0 +baseDamage = 2.0 lifeTime = 11000.0 indisDamage = true autoSpawnAnimation = true diff --git a/scripts/Contents/Characters/Bear.gd b/scripts/Contents/Characters/Bear.gd index 13438a0..94b78ef 100644 --- a/scripts/Contents/Characters/Bear.gd +++ b/scripts/Contents/Characters/Bear.gd @@ -18,7 +18,8 @@ func register(): attackCooldownMap[7] = 9000 healthChanged.connect( func(newHealth): - setStage(1 if newHealth < fields[FieldStore.Entity.MAX_HEALTH] * 0.5 else 0) + if currentStage != 2: + setStage(1 if newHealth < fields[FieldStore.Entity.MAX_HEALTH] * 0.5 else 0) ) func spawn(): texture.play("walk") @@ -26,7 +27,7 @@ func spawn(): if MathTool.rate(0.01): setStage(2) func ai(): - PresetEntityAI.follow(self, currentFocusedBoss, 400) + PresetEntityAI.follow(self, currentFocusedBoss, 250) for i in len(attackCooldownMap.keys()): tryAttack(i) func enterStage(stage): @@ -36,9 +37,9 @@ func enterStage(stage): fields[FieldStore.Entity.DAMAGE_MULTIPILER] = 1 fields[FieldStore.Entity.ATTACK_SPEED] = 1 elif stage == 1: - fields[FieldStore.Entity.MOVEMENT_SPEED] = 0.6 - fields[FieldStore.Entity.DAMAGE_MULTIPILER] = 1.15 - fields[FieldStore.Entity.ATTACK_SPEED] = 1.15 + fields[FieldStore.Entity.MOVEMENT_SPEED] = 0.55 + fields[FieldStore.Entity.DAMAGE_MULTIPILER] = 2.5 + fields[FieldStore.Entity.ATTACK_SPEED] = 0.6 elif stage == 2: fields[FieldStore.Entity.MOVEMENT_SPEED] = 0.25 fields[FieldStore.Entity.DAMAGE_MULTIPILER] = 9999