From f7329410d75cede2b311306fcf258aab45538c2c Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Wed, 26 Jul 2023 20:18:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=A8=E6=9C=8Dboss=20=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E7=94=9F=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/stonehenge/configure.go | 6 ++---- modules/stonehenge/modelStonehenge.go | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/stonehenge/configure.go b/modules/stonehenge/configure.go index a3513c713..e817aad8a 100644 --- a/modules/stonehenge/configure.go +++ b/modules/stonehenge/configure.go @@ -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_buffconf, cfg.NewGameStoneBuff, this.LoadGameStoneBuff) - this.CheckStage() return } @@ -614,7 +613,7 @@ func (this *configureComp) GetGameStoneBuff(addType int32) (m map[int32]struct{} return this.buff[addType] } -func (this *configureComp) CheckStage() (bossStage map[int32]*StageData) { +func (this *configureComp) CheckGlobalStage() (bossStage map[int32]*StageData) { var ( boosEvent map[int32]int32 // key stageid value rommid ) @@ -627,8 +626,7 @@ func (this *configureComp) CheckStage() (bossStage map[int32]*StageData) { stageData := &StageData{} boosEvent[k] = rooms[0] if roomconf, err := this.GetStoneRoomDataById(rooms[0]); err == nil { - // buff 组 roomconf.BossEvent - this.GetEventGroupDataByLottery(roomconf.BossEvent) + // 生成 我方buff if bossConf := this.GetBossConfById(roomconf.BossEvent); bossConf != nil { stageData.MaineBuff = this.GetBuffGroupDataByLottery(bossConf.FriendlyBuffGroup, 0, nil) diff --git a/modules/stonehenge/modelStonehenge.go b/modules/stonehenge/modelStonehenge.go index 80eb2f9c9..b9cafa7ab 100644 --- a/modules/stonehenge/modelStonehenge.go +++ b/modules/stonehenge/modelStonehenge.go @@ -100,7 +100,7 @@ func (this *MStonehenge) loadStoneBoos() (err error) { } if bNewData { this.lock.Lock() - this.bossStage = this.module.configure.CheckStage() + this.bossStage = this.module.configure.CheckGlobalStage() this.lock.Unlock() this.module.ModuleTools.UpdateGlobalData(StoneBossKey, map[string]interface{}{ "BossStage": this.bossStage,