Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed
实现1383-1387技能效果,包括自然祝福状态下的属性强化、自然祝福层数管理、护盾效果等
28 lines
497 B
Go
28 lines
497 B
Go
package effect
|
|
|
|
import (
|
|
"blazing/logic/service/fight/input"
|
|
"blazing/logic/service/fight/node"
|
|
)
|
|
|
|
// Effect 1384: 自身获得{0}层自然祝福
|
|
type Effect1384 struct{ node.EffectNode }
|
|
|
|
func (e *Effect1384) OnSkill() bool {
|
|
if len(e.Args()) == 0 {
|
|
return true
|
|
}
|
|
|
|
layers := int(e.Args()[0].IntPart())
|
|
if layers <= 0 {
|
|
return true
|
|
}
|
|
|
|
grantNaturalBlessing(e.Ctx().Our, e.Ctx().Our, layers)
|
|
return true
|
|
}
|
|
|
|
func init() {
|
|
input.InitEffect(input.EffectType.Skill, 1384, &Effect1384{})
|
|
}
|