From 0924366a2e9cd1c4d28670952b946224bc064c7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=A8=E8=90=BD=E5=9F=BA=E5=9B=B4=E8=99=BE?= <3161880837@qq.com> Date: Sun, 21 Sep 2025 22:37:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(EntityBase):=20=E8=B0=83=E6=95=B4=E8=83=BD?= =?UTF-8?q?=E9=87=8F=E6=81=A2=E5=A4=8D=E9=9A=8F=E6=9C=BA=E8=8C=83=E5=9B=B4?= =?UTF-8?q?=E4=BB=A5=E5=B9=B3=E8=A1=A1=E6=B8=B8=E6=88=8F=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将能量恢复的随机范围从固定值调整为基于能量恢复属性的动态值,避免玩家或AI单位能量恢复过快影响游戏平衡 --- scripts/Statemachine/EntityBase.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Statemachine/EntityBase.gd b/scripts/Statemachine/EntityBase.gd index bfc1150..1883541 100644 --- a/scripts/Statemachine/EntityBase.gd +++ b/scripts/Statemachine/EntityBase.gd @@ -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 # 通用方法