feat: 添加宠物训练加成效果
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
xinian
2026-04-06 03:47:17 +08:00
committed by cnb
parent 99748ba41e
commit a905954b5c
2 changed files with 83 additions and 4 deletions

View File

@@ -2,6 +2,7 @@ package effect
import (
"blazing/logic/service/fight/action"
"blazing/logic/service/fight/info"
"blazing/logic/service/fight/input"
)
@@ -70,6 +71,29 @@ func (e *NewSel247) TurnEnd() {
}
}
type NewSel239 struct {
NewSel0
}
func (e *NewSel239) ActionStart(a, b *action.SelectSkillAction) bool {
if !e.IsOwner() {
return true
}
if e.Ctx().SkillEntity == nil {
return true
}
if e.Ctx().SkillEntity.Category() == info.Category.STATUS {
return true
}
if len(e.Args()) == 0 {
return true
}
e.Ctx().SkillEntity.XML.Power += int(e.Args()[0].IntPart())
return true
}
func init() {
input.InitEffect(input.EffectType.NewSel, 239, &NewSel239{})
input.InitEffect(input.EffectType.NewSel, 247, &NewSel247{})
}