From 60255489d5a3768d974452d32c8b0f38944232b6 Mon Sep 17 00:00:00 2001 From: sk <123456@qq.com> Date: Tue, 28 May 2024 09:58:18 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E5=88=9B=E5=BB=BA=E6=88=BF=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gamesrv/base/scene.go | 3 ++- worldsrv/coinscenemgr.go | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gamesrv/base/scene.go b/gamesrv/base/scene.go index b642ada..9e8af34 100644 --- a/gamesrv/base/scene.go +++ b/gamesrv/base/scene.go @@ -2158,6 +2158,7 @@ func (this *Scene) TryBillExGameDrop(p *Player) { pack := &player.SCGameExDropItems{} pack.Items = make(map[int32]int32) for id, num := range realDrop { + remark := fmt.Sprintf("游戏掉落%v", id) pack.Items[id] = proto.Int32(num) itemData := srvdata.PBDB_GameItemMgr.GetData(id) if itemData != nil { @@ -2169,7 +2170,7 @@ func (this *Scene) TryBillExGameDrop(p *Player) { ItemId: itemData.Id, ItemName: itemData.Name, Count: int64(num), - Remark: "tienlen游戏掉落", + Remark: remark, TypeId: common.GainWay_Game, GameId: int64(this.GameId), GameFreeId: int64(this.GetGameFreeId()), diff --git a/worldsrv/coinscenemgr.go b/worldsrv/coinscenemgr.go index da57922..853ad90 100644 --- a/worldsrv/coinscenemgr.go +++ b/worldsrv/coinscenemgr.go @@ -405,6 +405,7 @@ func (csm *CoinSceneMgr) StartChangeCoinSceneTransact(p *Player, id int32, exclu // 1.模块启动后触发 // 2.游戏服建立连接后触发 // 3.房间解散后触发 +// 4.场次配置更新后 func (csm *CoinSceneMgr) TouchCreateRoom(platform string, gameFreeId int32) { gf := PlatformMgrSingleton.GetGameFree(platform, gameFreeId) if gf.Status && gf.DbGameFree.GetCreateRoomNum() > 0 { @@ -506,6 +507,7 @@ func (this *CoinSceneMgr) OnPlatformGameFreeUpdate(p *Platform, oldCfg, newCfg * } srvlib.ServerSessionMgrSington.Broadcast(int(server_proto.SSPacketID_PACKET_WG_GRACE_DESTROYSCENE), pack, common.GetSelfAreaId(), srvlib.GameServerType) + this.TouchCreateRoom(p.IdStr, newCfg.DbGameFree.Id) } }