全服boss 数据生成
This commit is contained in:
parent
d2cdc79341
commit
f7329410d7
@ -87,7 +87,6 @@ func (this *configureComp) Init(service core.IService, module core.IModule, comp
|
|||||||
configure.RegisterConfigure(game_stageconf, cfg.NewGameStoneStage, this.LoadGameStoneStage)
|
configure.RegisterConfigure(game_stageconf, cfg.NewGameStoneStage, this.LoadGameStoneStage)
|
||||||
configure.RegisterConfigure(game_buffconf, cfg.NewGameStoneBuff, this.LoadGameStoneBuff)
|
configure.RegisterConfigure(game_buffconf, cfg.NewGameStoneBuff, this.LoadGameStoneBuff)
|
||||||
|
|
||||||
this.CheckStage()
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -614,7 +613,7 @@ func (this *configureComp) GetGameStoneBuff(addType int32) (m map[int32]struct{}
|
|||||||
return this.buff[addType]
|
return this.buff[addType]
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *configureComp) CheckStage() (bossStage map[int32]*StageData) {
|
func (this *configureComp) CheckGlobalStage() (bossStage map[int32]*StageData) {
|
||||||
var (
|
var (
|
||||||
boosEvent map[int32]int32 // key stageid value rommid
|
boosEvent map[int32]int32 // key stageid value rommid
|
||||||
)
|
)
|
||||||
@ -627,8 +626,7 @@ func (this *configureComp) CheckStage() (bossStage map[int32]*StageData) {
|
|||||||
stageData := &StageData{}
|
stageData := &StageData{}
|
||||||
boosEvent[k] = rooms[0]
|
boosEvent[k] = rooms[0]
|
||||||
if roomconf, err := this.GetStoneRoomDataById(rooms[0]); err == nil {
|
if roomconf, err := this.GetStoneRoomDataById(rooms[0]); err == nil {
|
||||||
// buff 组 roomconf.BossEvent
|
|
||||||
this.GetEventGroupDataByLottery(roomconf.BossEvent)
|
|
||||||
// 生成 我方buff
|
// 生成 我方buff
|
||||||
if bossConf := this.GetBossConfById(roomconf.BossEvent); bossConf != nil {
|
if bossConf := this.GetBossConfById(roomconf.BossEvent); bossConf != nil {
|
||||||
stageData.MaineBuff = this.GetBuffGroupDataByLottery(bossConf.FriendlyBuffGroup, 0, nil)
|
stageData.MaineBuff = this.GetBuffGroupDataByLottery(bossConf.FriendlyBuffGroup, 0, nil)
|
||||||
|
@ -100,7 +100,7 @@ func (this *MStonehenge) loadStoneBoos() (err error) {
|
|||||||
}
|
}
|
||||||
if bNewData {
|
if bNewData {
|
||||||
this.lock.Lock()
|
this.lock.Lock()
|
||||||
this.bossStage = this.module.configure.CheckStage()
|
this.bossStage = this.module.configure.CheckGlobalStage()
|
||||||
this.lock.Unlock()
|
this.lock.Unlock()
|
||||||
this.module.ModuleTools.UpdateGlobalData(StoneBossKey, map[string]interface{}{
|
this.module.ModuleTools.UpdateGlobalData(StoneBossKey, map[string]interface{}{
|
||||||
"BossStage": this.bossStage,
|
"BossStage": this.bossStage,
|
||||||
|
Loading…
Reference in New Issue
Block a user