diff --git a/bin/json/game_global.json b/bin/json/game_global.json index 00f11b087..26ae44012 100644 --- a/bin/json/game_global.json +++ b/bin/json/game_global.json @@ -79,6 +79,31 @@ "t": "10005", "n": 1 }, + "base_pool_10cost": { + "a": "item", + "t": "10001", + "n": 10 + }, + "camp1_pool_10cost": { + "a": "item", + "t": "10002", + "n": 10 + }, + "camp2_pool_10cost": { + "a": "item", + "t": "10003", + "n": 10 + }, + "camp3_pool_10cost": { + "a": "item", + "t": "10004", + "n": 10 + }, + "camp4_pool_10cost": { + "a": "item", + "t": "10005", + "n": 10 + }, "camp1_pool1": "camp1_pool", "camp2_pool1": "camp2_pool", "camp3_pool1": "camp3_pool", @@ -109,6 +134,8 @@ "camp_pool_star3": 9000, "camp_pool_star4": 900, "camp_pool_star5": 100, - "gourmet": 500 + "gourmet": 500, + "smithy_maxplayer": 20, + "smithy_maxtime": 36000 } ] \ No newline at end of file diff --git a/modules/hero/api_drawCard.go b/modules/hero/api_drawCard.go index f3e330076..c98043ed2 100644 --- a/modules/hero/api_drawCard.go +++ b/modules/hero/api_drawCard.go @@ -32,6 +32,9 @@ func (this *apiComp) DrawCard(session comm.IUserSession, req *pb.HeroDrawCardReq ) req.DrawCount = 10 // test cfgDraw = this.module.configure.GetGlobalConf() // 读取抽卡配置文件 + if cfgDraw == nil { + return + } code = this.DrawCardCheck(session, req) if code != pb.ErrorCode_Success { return