feat(fight): 调整精灵切换逻辑与属性计算流程

移除 OnOwnerSwitchIn 和 OnOwnerSwitchOut 接口定义及调用逻辑,
简化精灵切换时的效果触发机制。

调整 PetInfo 属性计算方法中 Hp 与 MaxHp 的赋值顺序,
确保初始化时 Hp 值正确设置。
This commit is contained in:
2025-11-08 01:07:37 +08:00
parent 06cd6199b0
commit 28bef2cf98
4 changed files with 8 additions and 19 deletions

View File

@@ -282,7 +282,6 @@ func GenPetInfo(
// ---- 属性计算 ----
p.CalculatePetPane()
p.Hp = p.MaxHp
p.Update(true)