Commit e31439dba454314621d08724cbe6ad933c027e8e
1 parent
3c0ea5fb
冒险解锁
Showing
1 changed file
with
2 additions
and
5 deletions
Show diff stats
src/models/RolePlugin.lua
| ... | ... | @@ -927,13 +927,10 @@ function RolePlugin.bind(Role) |
| 927 | 927 | function Role:advChapterIsOpen(chapterId, layer) |
| 928 | 928 | layer = layer or 1 |
| 929 | 929 | local exlayer = math.floor((layer - 1) / 10) * 10 + 1 |
| 930 | - | |
| 931 | 930 | if exlayer == 1 then --第一层判断前置 |
| 932 | - local advPass = self:getProperty("advPass") | |
| 931 | + local hangPass = self:getProperty("hangPass") | |
| 933 | 932 | local chapterData = csvdb["adv_chapterCsv"][chapterId] |
| 934 | - for id, l in pairs(chapterData.prepose:toNumMap()) do | |
| 935 | - if (advPass[id] or 0) < l then return false end -- 前置 | |
| 936 | - end | |
| 933 | + if chapterData.prepose ~= 0 and not hangPass[chapterData.prepose] then return false end | |
| 937 | 934 | return true |
| 938 | 935 | end |
| 939 | 936 | ... | ... |