Module:GameSkills: Difference between revisions
From SpiritVale Wiki
More actions
No edit summary |
No edit summary |
||
| Line 1,358: | Line 1,358: | ||
local durS = seriesFromValuePair(bt["Duration"], maxLevel) | local durS = seriesFromValuePair(bt["Duration"], maxLevel) | ||
if durS ~= nil then | |||
local any = false | |||
for _, v in ipairs(durS) do | |||
if v ~= "—" then any = true break end | |||
end | |||
if any then | |||
return nil | |||
end | |||
end | |||
-- if durS is nil OR all "—", allow promotion | |||
local apps = rec["Status Applications"] | local apps = rec["Status Applications"] | ||