|
|
@@ -470,8 +470,6 @@ local function getTeamIdx(human)
|
|
|
teamIdx = #teamRecord[nBattleType] + 1
|
|
|
end
|
|
|
|
|
|
- print("====================getTeamIdx=====================", teamIdx)
|
|
|
-
|
|
|
return teamIdx
|
|
|
end
|
|
|
|
|
|
@@ -2833,6 +2831,14 @@ function fight(human)
|
|
|
return
|
|
|
end
|
|
|
|
|
|
+ -- 已通关
|
|
|
+ local nBattleType = BattleLogic_GetBattleType(human)
|
|
|
+ local tag = BattleLogic_GetBattleAdopt(human, nBattleType)
|
|
|
+ if tag == 1 then
|
|
|
+ return Broadcast.sendErr(human, Lang.DRILL_IS_FINSH)
|
|
|
+ end
|
|
|
+
|
|
|
+
|
|
|
-- local battleID = human.db.battleID
|
|
|
|
|
|
-- if BattleExcel.node[human.db.battleID] == nil then
|
|
|
@@ -4000,18 +4006,31 @@ function battleChapterReward(human, mapID)
|
|
|
-- return
|
|
|
-- end
|
|
|
|
|
|
+ local gujiID = BattleLogic_GetBattleGuaJiID(human)
|
|
|
+ if gujiID <= 0 then
|
|
|
+ return
|
|
|
+ end
|
|
|
+
|
|
|
+ local nBattleType = BattleLogic_GetBattleType(human)
|
|
|
+ local tag = BattleLogic_GetBattleAdopt(human, nBattleType)
|
|
|
+
|
|
|
-- 没有通过当前大关卡
|
|
|
- local battleID = nBattleID
|
|
|
- local battleNodeConfig = tBattleConfig.node[battleID]
|
|
|
+ -- local battleID = nBattleID
|
|
|
+ local battleNodeConfig = tBattleConfig.node[gujiID]
|
|
|
local roleMapId
|
|
|
if not battleNodeConfig then
|
|
|
- if battleID ~= #tBattleConfig.node + 1 then
|
|
|
+ if gujiID ~= #tBattleConfig.node + 1 then
|
|
|
return
|
|
|
else
|
|
|
roleMapId = #tBattleConfig.map
|
|
|
end
|
|
|
else
|
|
|
roleMapId = battleNodeConfig.mapID
|
|
|
+
|
|
|
+ -- 每40层升一个地图
|
|
|
+ if tag ~= 1 and gujiID % 40 ~= 0 then
|
|
|
+ roleMapId = roleMapId - 1
|
|
|
+ end
|
|
|
end
|
|
|
|
|
|
-- if mapID > roleMapId then
|
|
|
@@ -4791,8 +4810,6 @@ function QueryLevelTeamCnt(human)
|
|
|
local msgRet = Msg.gc.GC_BATTLE_TEAM_COUNT
|
|
|
msgRet.teamCnt = teamCnt
|
|
|
|
|
|
- print("====================QueryLevelTeamCnt==========================", teamCnt)
|
|
|
-
|
|
|
Msg.send(msgRet, human.fd)
|
|
|
end
|
|
|
|