feat: 添加必须道具字段
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user