|
|
@@ -25,6 +25,7 @@ local MonsterCfg = require("excel.monster")
|
|
|
local Grid = require("bag.Grid")
|
|
|
local MonsterGrid = require("monster.MonsterGrid")
|
|
|
local Broadcast = require("broadcast.Broadcast")
|
|
|
+local Log = require("common.Log")
|
|
|
|
|
|
--开启玩法的等级要求
|
|
|
local openCondLevel = 0
|
|
|
@@ -472,13 +473,16 @@ end
|
|
|
|
|
|
--单个种族关卡数据查询
|
|
|
function stageQuery(human, camp_m)
|
|
|
+ Log.write(Log.LOGID_OSS_RACAIL, string.format("stageQuery: %s", camp_m))
|
|
|
if not camp_m then
|
|
|
- Broadcast.sendErr(human, string.format( "参数错误",camp_m))
|
|
|
+ Log.write(Log.LOGID_OSS_RACAIL, string.format("参数错误: %s", camp_m))
|
|
|
+ --Broadcast.sendErr(human, string.format( "参数错误",camp_m))
|
|
|
return
|
|
|
end
|
|
|
|
|
|
if human.db.lv < openCondLevel then
|
|
|
- Broadcast.sendErr(human, string.format( "等级不够",human.db.lv))
|
|
|
+ Log.write(Log.LOGID_OSS_RACAIL, string.format("等级不够: %s, %s", human.db.lv, openCondLevel))
|
|
|
+ --Broadcast.sendErr(human, string.format( "等级不够",human.db.lv))
|
|
|
return
|
|
|
end
|
|
|
|
|
|
@@ -524,7 +528,7 @@ function stageQuery(human, camp_m)
|
|
|
for i = startIdx, endIdx do
|
|
|
local singleCfg = singleRecailCfg[i]
|
|
|
if not singleCfg then
|
|
|
- Broadcast.sendErr(human, string.format( "怪物配置错误",i))
|
|
|
+ Log.write(Log.LOGID_OSS_RACAIL, string.format("配置错误: %s", i))
|
|
|
return
|
|
|
end
|
|
|
cnt = cnt + 1
|
|
|
@@ -550,7 +554,8 @@ function stageQuery(human, camp_m)
|
|
|
--怪物数据
|
|
|
local objList = MonsterGrid.createMonsterObjListByMonsterOutID(singleCfg.monsterOutID)
|
|
|
if not objList then
|
|
|
- Broadcast.sendErr(human, string.format( "怪物配置错误",singleCfg.monsterOutID))
|
|
|
+ Log.write(Log.LOGID_OSS_RACAIL, string.format("怪物配置错误: %s", singleCfg.monsterOutID))
|
|
|
+ --Broadcast.sendErr(human, string.format( "怪物配置错误",singleCfg.monsterOutID))
|
|
|
return
|
|
|
end
|
|
|
stageData[cnt].monsterData[0] = #objList
|
|
|
@@ -566,6 +571,8 @@ function stageQuery(human, camp_m)
|
|
|
end
|
|
|
stageData[cnt].power = power
|
|
|
end
|
|
|
+ Log.write(Log.LOGID_OSS_RACAIL, string.format("end: %s", cnt))
|
|
|
stageData[0] = cnt
|
|
|
Msg.send(msgRet, human.fd)
|
|
|
+ Log.write(Log.LOGID_OSS_RACAIL, string.format("send"))
|
|
|
end
|