Difference between revisions of "Module:Availability/crate"

From Team Fortress Wiki
Jump to: navigation, search
(22 intermediate revisions by 7 users not shown)
Line 1: Line 1:
local active = {'61', '62', '63', '64', '65', '66', '67', '68', '69', '72', '73', '81', '82', '83', '84', '85', '87', '90', '91', '92', '93', '94', '95', '98', '99', '100', '101'}
+
local active = {'62', '63', '64', '65', '66', '67', '68', '69', '92', '103', '105', '109', '110', '111', '112', '113', '114', '115', '116', '128', '129'}
  
 
function status(num)
 
function status(num)
   if active[num] ~= nil then
+
   for _, n in ipairs(active) do
    return 'Mann Co. Supply Crate/Active series'
+
    if n == num then
  else
+
      return 'Mann Co. Supply Crate/Active series'
     return 'Mann Co. Supply Crate/Retired series'
+
     end
 
   end
 
   end
 +
  return 'Mann Co. Supply Crate/Retired series'
 
end
 
end

Revision as of 17:02, 6 October 2020

Documentation for this module may be created at Module:Availability/crate/doc

local active = {'62', '63', '64', '65', '66', '67', '68', '69', '92', '103', '105', '109', '110', '111', '112', '113', '114', '115', '116', '128', '129'}

function status(num)
  for _, n in ipairs(active) do
    if n == num then
      return 'Mann Co. Supply Crate/Active series'
    end
  end
  return 'Mann Co. Supply Crate/Retired series'
end