Module:maimai Difficulty: Difference between revisions
Jump to navigation
Jump to search
no edit summary
imported>Jack980517 No edit summary |
imported>Jack980517 No edit summary |
||
Line 6: | Line 6: | ||
function p.maimai_difficulty_multi(args) | function p.maimai_difficulty_multi(args) | ||
local result = "maimai " | local result = "maimai " | ||
if VerToNum("maimai", args[1]) <= 2 then | if VerToNum({"maimai", args[1]}) <= 2 then | ||
result = result .. "to PLUS difficulty rated from 1 to 10" | result = result .. "to PLUS difficulty rated from 1 to 10" | ||
else | else | ||
result = result .. "difficulty rated " | result = result .. "difficulty rated " | ||
end | end | ||
if VerToNum("maimai", args[#args]) <= 2 then | if VerToNum({"maimai", args[#args]}) <= 2 then | ||
result = result .. "." | result = result .. "." | ||
elseif VerToNum("maimai", args[1]) <= 2 then | elseif VerToNum({"maimai", args[1]}) <= 2 then | ||
result = result .. ", " | result = result .. ", " | ||
end | end | ||
Line 36: | Line 36: | ||
end | end | ||
-- print('start = ' .. startver .. ' end = ' .. endver) | -- print('start = ' .. startver .. ' end = ' .. endver) | ||
local startvernum = VerToNum("maimai", startver) | local startvernum = VerToNum({"maimai", startver}) | ||
local endvernum = 99 | local endvernum = 99 | ||
if endver ~= "" then | if endver ~= "" then | ||
endvernum = VerToNum("maimai", endver) | endvernum = VerToNum({"maimai", endver}) | ||
end | end | ||
for j = 1, #version_range_borders do | for j = 1, #version_range_borders do |