feat: 添加BossConfig战胜规则字段并移除MapNode冗余字段
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
xinian
2026-03-21 01:06:59 +08:00
committed by cnb
parent 6717ca5236
commit 4ba8fe32c4
3 changed files with 6 additions and 6 deletions

View File

@@ -101,7 +101,7 @@ func (Controller) PlayerFightBoss(data1 *fight.ChallengeBossInboundInfo, p *play
var fighc *fight.FightC
fighc, _ = fight.NewFight(p, ai, func(foi model.FightOverInfo) {
if mdata.WinBonusID != 0 {
if len(mdata.Rule) == 0 {
if len(bosinfo[0].Rule) == 0 {
if foi.Reason == 0 && foi.WinnerId == p.Info.UserID {
p.SptCompletedTask(mdata.WinBonusID, 1)
@@ -109,7 +109,7 @@ func (Controller) PlayerFightBoss(data1 *fight.ChallengeBossInboundInfo, p *play
} else {
//说明是带规则的
iswin := true
for _, v := range service.NewFightRuleService().GetByRuleIdxs(mdata.Rule) {
for _, v := range service.NewFightRuleService().GetByRuleIdxs(bosinfo[0].Rule) {
r := input.GetRule(int64(v.RuleIdx))
if r != nil {
r.SetArgs(v.Args...)