diff --git a/logic/controller/fight_boss野怪和地图怪.go b/logic/controller/fight_boss野怪和地图怪.go index 99c79e206..6d9e8f594 100644 --- a/logic/controller/fight_boss野怪和地图怪.go +++ b/logic/controller/fight_boss野怪和地图怪.go @@ -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 { diff --git a/modules/config/model/map_pit.go b/modules/config/model/map_pit.go index 0dfc2fe0f..e6236199b 100644 --- a/modules/config/model/map_pit.go +++ b/modules/config/model/map_pit.go @@ -22,6 +22,7 @@ type Event struct { //首发精灵判断Event FirstSprites []int32 `gorm:"type:int[];comment:'首发精灵判断'" json:"first_sprites"` MustTask []int32 `gorm:"type:int[];comment:'必须任务'" json:"must_task"` + MustItem []int32 `gorm:"type:int[];comment:'必须道具'" json:"must_item"` } // MapPit 地图坑位核心配置模型(参照MonsterRefresh实现风格)