feat(xmlres): 更新 BOSS 配置结构并优化字段注释

新增多个 BOSS 相关配置字段,包括任务关联、奖励机制与挑战限制等,
增强 BOSS 精灵的可配置性与业务表达能力。同时完善字段注释以对齐 XML
实际使用情况,并保留原有部分字段用于兼容历史配置。

fix(fight): 调整战斗胜利回调执行顺序以确保数据一致性

将战斗结束回调移至广播之前执行,保证在发送战斗结果前已完成所有状态
更新,尤其是针对胜利宠物的信息同步
This commit is contained in:
2025-11-22 22:57:32 +08:00
parent 7f443736bc
commit 1dbd4169e9
35 changed files with 518 additions and 360 deletions

View File

@@ -13,7 +13,7 @@ type EffectNode struct {
Input *input.Input
stacks int // 当前层数
id int64
id input.EffectIDCombiner
canStack bool // 最大叠加层数 ,正常都是不允许叠加的,除了衰弱特殊效果 ,异常和能力的叠层
SideEffectArgs []int // 附加效果参数
// owner bool //是否作用自身
@@ -24,6 +24,7 @@ type EffectNode struct {
hit bool
trunl sync.Once
ctx input.Ctx
input.EffectIDCombiner
//增加owner target如果owner target都为自身就回合效果结束后再使用回合效果
}
@@ -53,9 +54,10 @@ func (e *EffectNode) Stack(t ...int) int {
return e.stacks
}
func (e *EffectNode) ID(t ...int64) int64 {
func (e *EffectNode) ID(t ...input.EffectIDCombiner) input.EffectIDCombiner {
if len(t) > 0 {
e.id = t[0]
}
return e.id