28 lines
686 B
Go
28 lines
686 B
Go
package effect
|
||
|
||
import (
|
||
"blazing/logic/service/fight/action"
|
||
"blazing/logic/service/fight/input"
|
||
)
|
||
|
||
// 26. 给一种 battle_attr 增加固定 n 点属性值;(a1: battle_attr, a2: n)
|
||
type NewSel26 struct {
|
||
NewSel0
|
||
}
|
||
|
||
func (e *NewSel26) TurnStart(fattack *action.SelectSkillAction, sattack *action.SelectSkillAction) {
|
||
if !e.IsOwner() {
|
||
return
|
||
}
|
||
e.Ctx().Our.CurPet[0].Info.Prop[int(e.Args()[0].IntPart())] += uint32(e.Args()[1].IntPart())
|
||
}
|
||
func (e *NewSel26) TurnEnd() {
|
||
if !e.IsOwner() {
|
||
return
|
||
}
|
||
e.Ctx().Our.CurPet[0].Info.Prop[int(e.Args()[0].IntPart())] -= uint32(e.Args()[1].IntPart())
|
||
}
|
||
func init() {
|
||
input.InitEffect(input.EffectType.NewSel, 26, &NewSel26{})
|
||
}
|