1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-13 15:17:13 +08:00

refactor(角色): 调整熊角色的属性和行为逻辑

- 移除熊的基础移动速度设置,改为在不同阶段设置不同速度
- 调整熊各阶段的伤害倍率和攻击速度
- 修改熊的跟随距离从400降低到250
- 修复永恒彩虹子弹的伤害属性名从speed改为baseDamage
- 确保熊在未进入特殊阶段时默认设置为阶段0
This commit is contained in:
2025-11-22 10:01:14 +08:00
parent 4889c69bc8
commit c1a4b62688
2 changed files with 7 additions and 6 deletions
+6 -5
View File
@@ -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