审核处理

This commit is contained in:
Fang 2023-06-21 21:20:35 +08:00
parent 95c6377dbb
commit 54242318ed

View File

@ -123,16 +123,20 @@ function DungeonData:getOpenDungeons()
end end
local openDungeons = {} local openDungeons = {}
-- 开启且活跃
table.foreach(self.dungeonStage, function(module, s) table.foreach(self.dungeonStage, function(module, s)
if self:isOpen(module) and self:isActive(module) then if self:isOpen(module) and self:isActive(module) then
table.insert(openDungeons, module) table.insert(openDungeons, module)
end end
end) end)
table.foreach(self.dungeonStage, function(module, s) -- 开启且不活跃
if self:isOpen(module) and not self:isActive(module) then if not GFunc.isShenhe() then
table.insert(openDungeons, module) table.foreach(self.dungeonStage, function(module, s)
end if self:isOpen(module) and not self:isActive(module) then
end) table.insert(openDungeons, module)
end
end)
end
-- 碎片和金币顺序特殊处理:策划要求,同时开启时,金币在碎片之上 -- 碎片和金币顺序特殊处理:策划要求,同时开启时,金币在碎片之上
if self:isActive(ModuleManager.MODULE_KEY.DUNGEON_GOLD) and self:isActive(ModuleManager.MODULE_KEY.DUNGEON_SHARDS) then if self:isActive(ModuleManager.MODULE_KEY.DUNGEON_GOLD) and self:isActive(ModuleManager.MODULE_KEY.DUNGEON_SHARDS) then