Files
bl/logic/service/fight/effect/446_626.go

40 lines
892 B
Go
Raw Normal View History

package effect
import (
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
"github.com/gogf/gf/v2/util/grand"
)
// "id": 446,
// "argsNum": 0,
// "info": "随机自身3项属性+1"
// {
// "id": 626,
// "argsNum": 2,
// "info": "随机使自己{0}项能力+{1}"
// },
//
// 626 - 消除对手能力强化状态若消除状态成功则自身XX等级m
type Effect626 struct {
node.EffectNode
}
func (e *Effect626) Skill_Use() bool {
for i := 0; i < e.SideEffectArgs[0]; i++ {
e.Ctx().Our.SetProp(e.Ctx().Our, int8(grand.Intn(6)), int8(e.SideEffectArgs[1]))
}
return true
}
func init() {
input.InitEffect(input.EffectType.Skill, 626, &Effect626{})
t := &Effect626{}
t.SideEffectArgs = []int{3, 1}
input.InitEffect(input.EffectType.Skill, 446, t)
}