Files
bl/logic/service/fight/effect/446_626.go
xinian faad50b1df
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed
feat: 新增战斗技能效果并修复初始化注册
2026-03-13 16:05:43 +08:00

40 lines
892 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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)
}