feat: 实现战斗效果逻辑和接口重构
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed

This commit is contained in:
xinian
2026-03-28 21:57:22 +08:00
committed by cnb
parent 0780eae582
commit 875ad668aa
332 changed files with 2062 additions and 1442 deletions

View File

@@ -5,7 +5,7 @@ import (
"blazing/logic/service/fight/node"
)
// 440 - n回合内对手使用技能消耗的PP值变为m
// Effect 440: {0}回合内对手使用技能消耗的PP值变为{1}
type Effect440 struct {
node.EffectNode
}
@@ -13,9 +13,9 @@ type Effect440 struct {
func (e *Effect440) Skill_Use() bool {
// 创建一个延迟生效的效果,在下一回合开始生效
e.Ctx().Opp.AddEffect(e.Ctx().Our, e.GenSub(&Effect440_sub{
addSubEffect(e.Ctx().Our, e.Ctx().Opp, &e.EffectNode, &Effect440_sub{
m: int(e.Args()[1].IntPart()),
}, int(e.Args()[0].IntPart())))
}, int(e.Args()[0].IntPart()))
return true
}