Files
bl/logic/service/fight/boss/NewSeIdx_26.go
xinian fc420bfdb5 feat: 实现新特效20、21和26的核心逻辑
特效20: 在被指定技能命中前免疫伤害
特效21: 除指定技能外保留1点体力
特效26: 战斗属性增减逻辑
2026-01-29 16:43:32 +08:00

22 lines
626 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/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) {
e.Ctx().Our.CurrentPet.Info.Prop[int(e.Args()[0].IntPart())] += uint32(e.Args()[1].IntPart())
}
func (e *NewSel26) TurnEnd() {
e.Ctx().Our.CurrentPet.Info.Prop[int(e.Args()[0].IntPart())] -= uint32(e.Args()[1].IntPart())
}
func init() {
input.InitEffect(input.EffectType.NewSel, 26, &NewSel26{})
}