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

fix(Characters/Bear): 调整熊角色的冲刺速度和方向计算

将冲刺倍率从80降低到60以平衡游戏性
修正冲刺方向计算方式,改为使用标准化向量确保方向正确
This commit is contained in:
2025-09-14 16:28:51 +08:00
parent a995200155
commit cc05bd5a81
+2 -2
View File
@@ -16,7 +16,7 @@ func register():
attackCooldownMap[5] = 5500
attackCooldownMap[6] = 10000
attackCooldownMap[7] = 9000
sprintMultiplier = 80
sprintMultiplier = 60
healthChanged.connect(
func(newHealth):
setStage(1 if newHealth < fields[FieldStore.Entity.MAX_HEALTH] * 0.5 else 0)
@@ -109,4 +109,4 @@ func attack(type):
return false
return true
func sprint():
move(Vector2(sign((currentFocusedBoss.position - position).x * sprintMultiplier), 0), true)
move((currentFocusedBoss.position - position).normalized() * Vector2(1, 0) * sprintMultiplier, true)