diff --git a/src/models/RoleTask.lua b/src/models/RoleTask.lua index 689c08b..0e3ff54 100644 --- a/src/models/RoleTask.lua +++ b/src/models/RoleTask.lua @@ -697,7 +697,7 @@ function RoleTask.bind(Role) for _, hero in pairs(self.heros) do local unitData = csvdb["unitCsv"][hero:getProperty("type")] if unitData then - if cfg.condition2 <= unitData.rare then + if cfg.condition2 == unitData.rare then count = count + 1 end end @@ -758,11 +758,14 @@ function RoleTask.bind(Role) end elseif cfg.type == 15 then -- 通关关卡 if (calTask[id] or 0) == 0 then - local hangPass = self:getProperty("hangPass") - local diff = math.floor(cfg.condition2 / 10000) - if (hangPass[diff] or 0) >= cfg.condition1 then + if self:checkHangPass(cfg.condition2) then calTask[id] = 1 - end + end + --local hangPass = self:getProperty("hangPass") + --local diff = math.floor(cfg.condition2 / 10000) + --if (hangPass[diff] or 0) >= cfg.condition2 then + -- calTask[id] = 1 + --end end elseif cfg.type == 22 then -- 电台任务出勤人数 calTask[id] = (calTask[id] or 0) + (param1 or 0) -- libgit2 0.21.2