refactor(fight/effect): 重构技能伤害计算逻辑,将伤害处理移至Effect0.OnSkill方法并优化效果调用流程
This commit is contained in:
@@ -15,13 +15,7 @@ func (this *EffectNode) TakeHit(opp *input.Input, skill *info.SkillEntity) {
|
||||
|
||||
}
|
||||
|
||||
func (this *EffectNode) UseSkill(opp *input.Input) bool {
|
||||
|
||||
return this.Input.CurrentPet.HP != 0
|
||||
}
|
||||
func (this *EffectNode) OnSkillPP() bool {
|
||||
panic("not implemented") // TODO: Implement
|
||||
}
|
||||
func (this *EffectNode) SkillUseEnd() bool {
|
||||
panic("not implemented") // TODO: Implement
|
||||
}
|
||||
|
||||
20
logic/service/fight/node/skill.go
Normal file
20
logic/service/fight/node/skill.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user