|
|
@@ -24,8 +24,6 @@ local HeroConfig = require("excel.hero")
|
|
|
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
|
|
|
@@ -473,18 +471,11 @@ end
|
|
|
|
|
|
--单个种族关卡数据查询
|
|
|
function stageQuery(human, camp_m)
|
|
|
- Broadcast.sendErr(human, string.format( "stageQuery0: %s", camp_m))
|
|
|
- Log.write(Log.LOGID_OSS_RACAIL, string.format("stageQuery: %s", camp_m))
|
|
|
if not camp_m then
|
|
|
- Log.write(Log.LOGID_OSS_RACAIL, string.format("参数错误: %s", camp_m))
|
|
|
- --Broadcast.sendErr(human, string.format( "参数错误",camp_m))
|
|
|
return
|
|
|
end
|
|
|
|
|
|
- Broadcast.sendErr(human, string.format( "stageQuery1: %s", openCondLevel))
|
|
|
if human.db.lv < openCondLevel then
|
|
|
- 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,15 +515,12 @@ function stageQuery(human, camp_m)
|
|
|
endIdx = levelMaxCnt
|
|
|
end
|
|
|
|
|
|
- Broadcast.sendErr(human, string.format( "stageQuery1:%s", openCondLevel))
|
|
|
-
|
|
|
local stageData = msgRet.data.stageData
|
|
|
stageData[0] = 0
|
|
|
local cnt = 0
|
|
|
for i = startIdx, endIdx do
|
|
|
local singleCfg = singleRecailCfg[i]
|
|
|
if not singleCfg then
|
|
|
- Log.write(Log.LOGID_OSS_RACAIL, string.format("配置错误: %s", i))
|
|
|
return
|
|
|
end
|
|
|
cnt = cnt + 1
|
|
|
@@ -558,8 +546,6 @@ function stageQuery(human, camp_m)
|
|
|
--怪物数据
|
|
|
local objList = MonsterGrid.createMonsterObjListByMonsterOutID(singleCfg.monsterOutID)
|
|
|
if not objList then
|
|
|
- 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
|
|
|
@@ -575,11 +561,6 @@ function stageQuery(human, camp_m)
|
|
|
end
|
|
|
stageData[cnt].power = power
|
|
|
end
|
|
|
-
|
|
|
- Broadcast.sendErr(human, string.format( "stageQuery2:%s", cnt))
|
|
|
- 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"))
|
|
|
- Broadcast.sendErr(human, string.format( "stageQuery3:%s", cnt))
|
|
|
end
|