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

fix: 调整能量存储计算中的随机范围

修复能量存储计算中随机范围错误,避免可能出现负值的情况
This commit is contained in:
2025-09-21 22:43:59 +08:00
parent 0924366a2e
commit 9fa9564093
+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.05 + fields.get(FieldStore.Entity.ENERGY_REGENERATION)), true)
storeEnergy(randf_range(0.01, 0.05 + fields.get(FieldStore.Entity.ENERGY_REGENERATION) - 1), true)
trailParticle.emitting = trailing
# 通用方法