无尽副本出图多次请求商店 修复

ZhangBiao 2020-10-14 11:55:40 +08:00
parent 63e5be4088
commit 9265a8883c
2 changed files with 37 additions and 49 deletions

View File

@ -492,33 +492,33 @@ function this.GetMapBagItemCountById(_itemId)
return 0 return 0
end end
--把地图临时背包物品数量加成到背包中 --把地图临时背包物品数量加成到背包中
function this.InBagGetMapBag() -- function this.InBagGetMapBag()
--for i, v in pairs(this.mapShotTimeItemData) do -- --for i, v in pairs(this.mapShotTimeItemData) do
-- if v.isSave then -- -- if v.isSave then
-- if v.isSave == 1 then -- -- if v.isSave == 1 then
-- this.UpdateBagData(v) -- -- this.UpdateBagData(v)
-- end -- -- end
-- end -- -- end
--end -- --end
for i, v in pairs(EquipManager.mapShotTimeItemData) do -- for i, v in pairs(EquipManager.mapShotTimeItemData) do
EquipManager.UpdateEquipData(v) -- EquipManager.UpdateEquipData(v)
end -- end
for i, v in pairs(HeroManager.mapShotTimeItemData) do -- for i, v in pairs(HeroManager.mapShotTimeItemData) do
HeroManager.UpdateHeroDatas(v) -- HeroManager.UpdateHeroDatas(v)
end -- end
for i, v in pairs(TalismanManager.mapShotTimeItemData) do -- for i, v in pairs(TalismanManager.mapShotTimeItemData) do
TalismanManager.InitUpdateSingleTalismanData(v) -- TalismanManager.InitUpdateSingleTalismanData(v)
end -- end
--SoulPrintManager.InitServerData(SoulPrintManager.mapShotTimeItemData) -- --SoulPrintManager.InitServerData(SoulPrintManager.mapShotTimeItemData)
EquipTreasureManager.InitAllEquipTreasure(SoulPrintManager.mapShotTimeItemData) -- EquipTreasureManager.InitAllEquipTreasure(SoulPrintManager.mapShotTimeItemData)
this.mapShotTimeItemData = {} -- this.mapShotTimeItemData = {}
EquipManager.mapShotTimeItemData = {} -- EquipManager.mapShotTimeItemData = {}
HeroManager.mapShotTimeItemData = {} -- HeroManager.mapShotTimeItemData = {}
TalismanManager.mapShotTimeItemData = {} -- TalismanManager.mapShotTimeItemData = {}
SoulPrintManager.mapShotTimeItemData = {} -- SoulPrintManager.mapShotTimeItemData = {}
Game.GlobalEvent:DispatchEvent(GameEvent.Bag.BagGold) -- Game.GlobalEvent:DispatchEvent(GameEvent.Bag.BagGold)
end -- end
function this.OnShowTipDropNumZero(drop) function this.OnShowTipDropNumZero(drop)
local addMaxNumItemNameList = "" local addMaxNumItemNameList = ""
if drop.itemlist ~= nil and #drop.itemlist > 0 then if drop.itemlist ~= nil and #drop.itemlist > 0 then

View File

@ -488,29 +488,17 @@ end
function this.OnMapOut(outType) function this.OnMapOut(outType)
--出图不需要发协议了 --出图不需要发协议了
Log("outType ====== " .. outType) -- Log("outType ====== " .. outType)
-- 无尽副本需要传目的地的地图ID -- 无尽副本需要传目的地的地图ID
-- local distMapId = 0 if outType == 0 then
-- if CarbonManager.difficulty == CARBON_TYPE.ENDLESS and nextMapId > 0 then this.BackHome()
-- distMapId = nextMapId MapManager.Mapping = false
-- end else --换层或者换地图
-- 音效
-- NetManager.MapOutRequest(outType, function (msg) SoundManager.PlaySound(SoundConfig.Sound_xyc)
if outType == 0 then this.ChangeMapByType()
this.BackHome() end
MapManager.Mapping = false Game.GlobalEvent:DispatchEvent(GameEvent.Event.PointTriggerEnd)
-- elseif outType == 1 then -- 正常出图
-- this.BackToCarbonPanel()
-- MapManager.Mapping = false
else --换层或者换地图
-- 音效
SoundManager.PlaySound(SoundConfig.Sound_xyc)
this.ChangeMapByType()
end
Game.GlobalEvent:DispatchEvent(GameEvent.Event.PointTriggerEnd)
-- end, distMapId)
end end
-- ========================= 死出图的各种方法 ========================== -- ========================= 死出图的各种方法 ==========================
@ -525,7 +513,7 @@ function this.BackHome()
this.Dispose() this.Dispose()
Game.GlobalEvent:RemoveEvent(GameEvent.UI.OnClose, triggerCallBack) Game.GlobalEvent:RemoveEvent(GameEvent.UI.OnClose, triggerCallBack)
end end
BagManager.InBagGetMapBag() -- BagManager.InBagGetMapBag()
end end
Game.GlobalEvent:AddEvent(GameEvent.UI.OnClose, triggerCallBack) Game.GlobalEvent:AddEvent(GameEvent.UI.OnClose, triggerCallBack)
-- 清空一下副本任务 -- 清空一下副本任务