feat: 添加BossConfig战胜规则字段并移除MapNode冗余字段
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
This commit is contained in:
@@ -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...)
|
||||
|
||||
Reference in New Issue
Block a user