29 lines
649 B
Go
29 lines
649 B
Go
package effect
|
||
|
||
import (
|
||
"blazing/logic/service/fight/info"
|
||
"blazing/logic/service/fight/input"
|
||
|
||
"github.com/alpacahq/alpacadecimal"
|
||
)
|
||
|
||
// 38. 自身造成的伤害增加n%;(a1: n 百分比)
|
||
// TODO: 实现自身造成的伤害增加n%;(a1: n 百分比)的核心逻辑
|
||
type NewSel38 struct {
|
||
NewSel0
|
||
}
|
||
|
||
func (e *NewSel39) DamageAdd(t *info.DamageZone) bool {
|
||
|
||
if e.ID().GetCatchTime() != e.Ctx().Our.CurrentPet[0].Info.CatchTime {
|
||
return true
|
||
}
|
||
|
||
t.Damage = t.Damage.Add(t.Damage.Mul(alpacadecimal.NewFromInt(int64(e.Args()[0].IntPart()))))
|
||
|
||
return true
|
||
}
|
||
func init() {
|
||
input.InitEffect(input.EffectType.NewSel, 38, &NewSel38{})
|
||
}
|