diff --git a/src/models/RolePlugin.lua b/src/models/RolePlugin.lua index 93a73b8..bcae830 100644 --- a/src/models/RolePlugin.lua +++ b/src/models/RolePlugin.lua @@ -927,13 +927,10 @@ function RolePlugin.bind(Role) function Role:advChapterIsOpen(chapterId, layer) layer = layer or 1 local exlayer = math.floor((layer - 1) / 10) * 10 + 1 - if exlayer == 1 then --第一层判断前置 - local advPass = self:getProperty("advPass") + local hangPass = self:getProperty("hangPass") local chapterData = csvdb["adv_chapterCsv"][chapterId] - for id, l in pairs(chapterData.prepose:toNumMap()) do - if (advPass[id] or 0) < l then return false end -- 前置 - end + if chapterData.prepose ~= 0 and not hangPass[chapterData.prepose] then return false end return true end -- libgit2 0.21.2