1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-01 00:41:54 +08:00

fix(EntityBase): 调整能量恢复随机范围以平衡游戏性

将能量恢复的随机范围从固定值调整为基于能量恢复属性的动态值,避免玩家或AI单位能量恢复过快影响游戏平衡
This commit is contained in:
2025-09-21 22:37:26 +08:00
parent 12b815a6f3
commit 0924366a2e
+1 -1
View File
@@ -167,7 +167,7 @@ func _physics_process(_delta: float) -> void:
if (isPlayer() or is_instance_valid(currentFocusedBoss)) and not charginup and canRunAi:
ai()
move_and_slide()
storeEnergy(randf_range(0.01, 0.1) * fields.get(FieldStore.Entity.ENERGY_REGENERATION), true)
storeEnergy(randf_range(0.01, 0.05 + fields.get(FieldStore.Entity.ENERGY_REGENERATION)), true)
trailParticle.emitting = trailing
# 通用方法