80 lines
1.9 KiB
Go
80 lines
1.9 KiB
Go
package node
|
|
|
|
import (
|
|
"blazing/logic/service/fight/info"
|
|
"blazing/logic/service/fight/input"
|
|
)
|
|
|
|
// 技能命中计算
|
|
func (this *EffectNode) IsHit(attacker, defender *input.Input, skill *info.BattleSkillEntity) {
|
|
|
|
}
|
|
|
|
// 被命中计算,默认直接返回,重写这个来实现闪避率
|
|
func (this *EffectNode) TakeHit(attacker, defender *input.Input, skill *info.BattleSkillEntity) {
|
|
|
|
}
|
|
|
|
func (this *EffectNode) UseSkill(attacker, defender *input.Input) bool {
|
|
return true
|
|
}
|
|
func (this *EffectNode) OnSkillPP() bool {
|
|
panic("not implemented") // TODO: Implement
|
|
}
|
|
func (this *EffectNode) SkillUseEnd() bool {
|
|
panic("not implemented") // TODO: Implement
|
|
}
|
|
|
|
func (this *EffectNode) BeforeMultiHit() bool {
|
|
panic("not implemented") // TODO: Implement
|
|
}
|
|
|
|
func (this *EffectNode) BeforeHit() bool {
|
|
panic("not implemented") // TODO: Implement
|
|
}
|
|
|
|
func (this *EffectNode) OnCritPreDamage() bool {
|
|
panic("not implemented") // TODO: Implement
|
|
}
|
|
|
|
func (this *EffectNode) PreDamage() bool {
|
|
panic("not implemented") // TODO: Implement
|
|
}
|
|
|
|
func (this *EffectNode) CalculateDamage(attacker, defender *input.Input, skill *info.BattleSkillEntity) {
|
|
panic("not implemented") // TODO: Implement
|
|
}
|
|
|
|
func (this *EffectNode) OnDamage() bool {
|
|
panic("not implemented") // TODO: Implement
|
|
}
|
|
|
|
func (this *EffectNode) Shield() bool {
|
|
panic("not implemented") // TODO: Implement
|
|
}
|
|
|
|
func (this *EffectNode) PostDamage() bool {
|
|
panic("not implemented") // TODO: Implement
|
|
}
|
|
|
|
// 正常来说,什么都不做
|
|
func (this *EffectNode) IsCrit(attacker, defender *input.Input, skill *info.BattleSkillEntity) {
|
|
//return skill.Crit
|
|
}
|
|
|
|
func (this *EffectNode) OnHit() bool {
|
|
panic("not implemented") // TODO: Implement
|
|
}
|
|
|
|
func (this *EffectNode) OnMiss() bool {
|
|
panic("not implemented") // TODO: Implement
|
|
}
|
|
|
|
func (this *EffectNode) AfterAttacked() bool {
|
|
panic("not implemented") // TODO: Implement
|
|
}
|
|
|
|
func (this *EffectNode) OnDefeat() bool {
|
|
panic("not implemented") // TODO: Implement
|
|
}
|