29 lines
626 B
Go
29 lines
626 B
Go
package effect
|
|
|
|
import (
|
|
"blazing/logic/service/fight/info"
|
|
"blazing/logic/service/fight/input"
|
|
"blazing/logic/service/fight/node"
|
|
|
|
"github.com/alpacahq/alpacadecimal"
|
|
)
|
|
|
|
// Effect 111: 附加额外伤害,自身等级越高,附加的伤害越高
|
|
type Effect111 struct {
|
|
node.EffectNode
|
|
}
|
|
|
|
func (e *Effect111) OnSkill() bool {
|
|
|
|
e.Ctx().Opp.Damage(e.Ctx().Our, &info.DamageZone{
|
|
Type: info.DamageType.Fixed,
|
|
Damage: alpacadecimal.NewFromInt(int64(e.Ctx().Opp.CurPet[0].Info.Level)),
|
|
})
|
|
return true
|
|
}
|
|
|
|
// ---- 注册所有效果 ----
|
|
func init() {
|
|
input.InitEffect(input.EffectType.Skill, 111, &Effect111{})
|
|
}
|