refactor(fight/effect): 重构技能伤害计算逻辑,将伤害处理移至Effect0.OnSkill方法并优化效果调用流程

This commit is contained in:
1
2025-09-23 18:35:23 +00:00
parent a524e651aa
commit 5a023ccd1c
6 changed files with 55 additions and 40 deletions

View File

@@ -0,0 +1,20 @@
package node
import (
"blazing/logic/service/fight/info"
"blazing/logic/service/fight/input"
)
// 使用技能前
func (e *EffectNode) UseSkill(opp *input.Input) bool {
return e.Input.CurrentPet.HP != 0
}
// 使用技能时
func (e *EffectNode) OnSkill(opp *input.Input, skill *info.SkillEntity) {
}
func (e *EffectNode) OnSkillPP() bool {
panic("not implemented") // TODO: Implement
}