mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-07-05 09:42:13 +08:00
fix(EntityBase): 调整能量恢复随机范围以平衡游戏性
将能量恢复的随机范围从固定值调整为基于能量恢复属性的动态值,避免玩家或AI单位能量恢复过快影响游戏平衡
This commit is contained in:
@@ -167,7 +167,7 @@ func _physics_process(_delta: float) -> void:
|
|||||||
if (isPlayer() or is_instance_valid(currentFocusedBoss)) and not charginup and canRunAi:
|
if (isPlayer() or is_instance_valid(currentFocusedBoss)) and not charginup and canRunAi:
|
||||||
ai()
|
ai()
|
||||||
move_and_slide()
|
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
|
trailParticle.emitting = trailing
|
||||||
|
|
||||||
# 通用方法
|
# 通用方法
|
||||||
|
|||||||
Reference in New Issue
Block a user