feat: 添加必须道具字段
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
xinian
2026-03-07 10:40:04 +08:00
committed by cnb
parent 7bb0ef856a
commit 2dab20653f
2 changed files with 16 additions and 0 deletions

View File

@@ -64,7 +64,22 @@ func (Controller) PlayerFightBoss(data1 *fight.ChallengeBossInboundInfo, p *play
monster.Hp = uint32(bm.Hp)
monster.MaxHp = uint32(bm.Hp)
}
if len(bm.Prop) == 5 {
monster.Prop = [5]uint32(bm.Prop)
}
if len(bm.SKill) != 0 {
for i := 0; i < 4; i++ {
if bm.SKill[i] != 0 {
monster.SkillList[i].ID = bm.SKill[i]
}
}
}
effects := service.NewEffectService().Args(bm.Effect)
for _, v := range effects {