refactor(fight/effect): 重构伤害处理逻辑,统一使用DamageZone管理伤害值并优化Effect接口,移除过时方法

This commit is contained in:
1
2025-09-26 02:09:33 +00:00
parent 6a3a8ba20f
commit 728f3a52d6
10 changed files with 171 additions and 199 deletions

View File

@@ -1,24 +1,21 @@
package node
import (
"blazing/logic/service/fight/info"
"blazing/logic/service/fight/input"
)
// 加算区
func (e *EffectNode) AddZone(opp *input.Input, skill *input.EffectID) {
}
// 乘算区
func (e *EffectNode) MulZone(opp *input.Input, skill *input.EffectID) {
// 受击触发
func (this *EffectNode) Attack(opp *input.Input, eff *input.EffectID) {
}
// 受击触发
func (this *EffectNode) Attacked(opp *input.Input, skill *info.SkillEntity) {
func (this *EffectNode) BeforeAttack(opp *input.Input, eff *input.EffectID) {
}
// 受击触发
func (this *EffectNode) BeforeAttacked(opp *input.Input, skill *info.SkillEntity) {
func (this *EffectNode) Attacked(opp *input.Input, eff *input.EffectID) {
}
// 受击触发
func (this *EffectNode) BeforeAttacked(opp *input.Input, eff *input.EffectID) {
}