refactor(fight/effect): 统一方法接收器命名并实现OnHit方法

This commit is contained in:
1
2025-09-23 22:31:37 +00:00
parent aa8ba39ff3
commit c2fb2fb25f
2 changed files with 4 additions and 4 deletions

View File

@@ -55,11 +55,11 @@ func (this *EffectNode) IsCrit(opp *input.Input, skill *info.SkillEntity) {
//return skill.Crit
}
func (this *EffectNode) OnHit() bool {
panic("not implemented") // TODO: Implement
func (e *EffectNode) OnHit() bool {
return true
}
func (this *EffectNode) OnMiss() bool {
func (e *EffectNode) OnMiss() bool {
panic("not implemented") // TODO: Implement
}

View File

@@ -18,6 +18,6 @@ func (e *EffectNode) OnSkill(opp *input.Input, skill *info.SkillEntity) {
func (e *EffectNode) OnSkillPP() bool {
return true
}
func (this *EffectNode) SkillUseEnd(*input.Input) {
func (e *EffectNode) SkillUseEnd(*input.Input) {
}