refactor(fight/effect): 统一方法接收器命名并实现OnHit方法
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user