Module:ONGEKI Difficulty: Difference between revisions

no edit summary
imported>Jack980517
(remove reliance on hard-coded numbers)
No edit summary
Line 6: Line 6:
function p.ongeki_difficulty_multi(frame)
function p.ongeki_difficulty_multi(frame)
     args=frame:getParent().args
     args=frame:getParent().args
     local version_range_borders = {6}
     local version_range_borders = {6,8}
     local result = "オンゲキ "
     local result = "オンゲキ "
     if VerToNum({"ongeki", args[1]}) < version_range_borders[1] then
     if VerToNum({"ongeki", args[1]}) < version_range_borders[1] then
Line 21: Line 21:
     end
     end
     local ranges_text = {
     local ranges_text = {
         "1 to 15 from R.E.D. PLUS onwards"
         "1 to 15 from R.E.D. PLUS to bright",
        "1 to 15+ from bright MEMORY onwards"
     }
     }
     local j = 1
     local j = 1