bug修复
This commit is contained in:
parent
3dbb432b51
commit
ca3ab5bf39
@ -52,10 +52,10 @@ function DungeonArmorManager:reqFight(chapterId)
|
||||
end
|
||||
end
|
||||
local parmas = {chapter_armor_id = chapterId, heroes = heroes}
|
||||
self:sendMessage(ProtoMsgType.FromMsgEnum.ChapterArmorChallengeStartReq, parmas, {}, self.rsqFight, BIReport.ITEM_GET_TYPE.DUNGEON_ARMOR_CHALLENGE)
|
||||
self:sendMessage(ProtoMsgType.FromMsgEnum.ChapterArmorChallengeStartReq, parmas, {}, self.rspFight, BIReport.ITEM_GET_TYPE.DUNGEON_ARMOR_CHALLENGE)
|
||||
end
|
||||
|
||||
function DungeonArmorManager:rsqFight(result)
|
||||
function DungeonArmorManager:rspFight(result)
|
||||
if result.err_code == GConst.ERROR_STR.SUCCESS then
|
||||
local armorData = DataManager.DungeonData:getDungeonDataByType(ModuleManager.MODULE_KEY.DUNGEON_ARMOR)
|
||||
if result.reqData then
|
||||
@ -77,6 +77,7 @@ function DungeonArmorManager:rsqFight(result)
|
||||
ModuleManager.MaincityManager:showMainCityUI()
|
||||
self:showMainUI()
|
||||
end)
|
||||
DataManager.DungeonData:setDirty()
|
||||
end
|
||||
end
|
||||
|
||||
@ -87,16 +88,17 @@ function DungeonArmorManager:reqEndChallenge(chapterId, combatReport, taskProgre
|
||||
task_stat = taskProgress,
|
||||
combatReport = combatReport,
|
||||
}
|
||||
self:sendMessage(ProtoMsgType.FromMsgEnum.ChapterArmorChallengeSettlementReq, parmas, {}, self.rsqEndChallenge, BIReport.ITEM_GET_TYPE.DUNGEON_ARMOR_END)
|
||||
self:sendMessage(ProtoMsgType.FromMsgEnum.ChapterArmorChallengeSettlementReq, parmas, {}, self.rspEndChallenge, BIReport.ITEM_GET_TYPE.DUNGEON_ARMOR_END)
|
||||
end
|
||||
|
||||
function DungeonArmorManager:rsqEndChallenge(result)
|
||||
function DungeonArmorManager:rspEndChallenge(result)
|
||||
if result.err_code == GConst.ERROR_STR.SUCCESS then
|
||||
local armorData = DataManager.DungeonData:getDungeonDataByType(ModuleManager.MODULE_KEY.DUNGEON_ARMOR)
|
||||
if result.reqData then
|
||||
armorData:refreshInfoOnSettlement(result.reqData.chapter_armor_id, result)
|
||||
end
|
||||
ModuleManager.BattleManager:showBattleArmorResultUI(GConst.BattleConst.BATTLE_TYPE.DUNGEON_ARMOR, result.rewards, result.reqData.combatReport)
|
||||
DataManager.DungeonData:setDirty()
|
||||
end
|
||||
end
|
||||
|
||||
@ -125,11 +127,11 @@ function DungeonArmorManager:reqSweep(chapterId, target)
|
||||
chapter_armor_id = chapterId,
|
||||
target = target, -- 扫荡目标(客户端用)
|
||||
}
|
||||
self:sendMessage(ProtoMsgType.FromMsgEnum.ChapterArmorChallengeFarmReq, parmas, {}, self.respSweep, BIReport.ITEM_GET_TYPE.DUNGEON_ARMOR_SWEEP)
|
||||
self:sendMessage(ProtoMsgType.FromMsgEnum.ChapterArmorChallengeFarmReq, parmas, {}, self.rspSweep, BIReport.ITEM_GET_TYPE.DUNGEON_ARMOR_SWEEP)
|
||||
end
|
||||
|
||||
-- 响应扫荡副本
|
||||
function DungeonArmorManager:respSweep(result)
|
||||
function DungeonArmorManager:rspSweep(result)
|
||||
if result.err_code == GConst.ERROR_STR.SUCCESS then
|
||||
local armorData = DataManager.DungeonData:getDungeonDataByType(ModuleManager.MODULE_KEY.DUNGEON_ARMOR)
|
||||
local remainCount = 0
|
||||
@ -146,6 +148,7 @@ function DungeonArmorManager:respSweep(result)
|
||||
self:reqSweep(result.reqData.chapter_armor_id, result.reqData.target)
|
||||
end
|
||||
end, nil, result.reqData.target)
|
||||
DataManager.DungeonData:setDirty()
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@ -54,6 +54,8 @@ function DungeonWeaponManager:rsqFight(result)
|
||||
ModuleManager.MaincityManager:showMainCityUI()
|
||||
self:showMainUI()
|
||||
end)
|
||||
|
||||
DataManager.DungeonData:setDirty()
|
||||
end
|
||||
end
|
||||
|
||||
@ -64,10 +66,10 @@ function DungeonWeaponManager:reqEndChallenge(chapterId, combatReport, taskProgr
|
||||
task_stat = taskProgress,
|
||||
combatReport = combatReport,
|
||||
}
|
||||
self:sendMessage(ProtoMsgType.FromMsgEnum.ChapterWeaponChallengeSettlementReq, parmas, {}, self.rsqEndChallenge, BIReport.ITEM_GET_TYPE.DUNGEON_WEAPON_END)
|
||||
self:sendMessage(ProtoMsgType.FromMsgEnum.ChapterWeaponChallengeSettlementReq, parmas, {}, self.rspEndChallenge, BIReport.ITEM_GET_TYPE.DUNGEON_WEAPON_END)
|
||||
end
|
||||
|
||||
function DungeonWeaponManager:rsqEndChallenge(result)
|
||||
function DungeonWeaponManager:rspEndChallenge(result)
|
||||
if result.err_code == GConst.ERROR_STR.SUCCESS then
|
||||
local weaponData = DataManager.DungeonData:getDungeonDataByType(ModuleManager.MODULE_KEY.DUNGEON_WEAPON)
|
||||
weaponData:refreshInfoOnSettlement(result.reqData.chapter_weapon_id, result)
|
||||
@ -91,6 +93,7 @@ function DungeonWeaponManager:rsqEndChallenge(result)
|
||||
table.insert(resultRewards, reward)
|
||||
end
|
||||
ModuleManager.BattleManager:showBattleResultUI(GConst.BattleConst.BATTLE_TYPE.DUNGEON_WEAPON, resultRewards, result.reqData.combatReport, nil, firstRewardsIdx, true)
|
||||
DataManager.DungeonData:setDirty()
|
||||
end
|
||||
end
|
||||
|
||||
@ -112,11 +115,11 @@ function DungeonWeaponManager:reqSweep(chapterId, target)
|
||||
chapter_weapon_id = chapterId,
|
||||
target = target, -- 扫荡目标(客户端用)
|
||||
}
|
||||
self:sendMessage(ProtoMsgType.FromMsgEnum.ChapterWeaponChallengeFarmReq, parmas, {}, self.respSweep, BIReport.ITEM_GET_TYPE.DUNGEON_WEAPON_SWEEP)
|
||||
self:sendMessage(ProtoMsgType.FromMsgEnum.ChapterWeaponChallengeFarmReq, parmas, {}, self.rspSweep, BIReport.ITEM_GET_TYPE.DUNGEON_WEAPON_SWEEP)
|
||||
end
|
||||
|
||||
-- 响应扫荡副本
|
||||
function DungeonWeaponManager:respSweep(result)
|
||||
function DungeonWeaponManager:rspSweep(result)
|
||||
if result.err_code == GConst.ERROR_STR.SUCCESS then
|
||||
local weaponData = DataManager.DungeonData:getDungeonDataByType(ModuleManager.MODULE_KEY.DUNGEON_WEAPON)
|
||||
weaponData:refreshInfoOnFarm(result)
|
||||
@ -128,6 +131,7 @@ function DungeonWeaponManager:respSweep(result)
|
||||
ModuleManager.CommonManager:showMopUpUI(newRewards, remainCount, function()
|
||||
self:reqSweep(result.reqData.chapter_weapon_id, result.reqData.target)
|
||||
end, nil, result.reqData.target)
|
||||
DataManager.DungeonData:setDirty()
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user