Module:Availability/crate

From Team Fortress Wiki
Jump to: navigation, search

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', '143'}
local cases = {'93', '94', '95', '96', '97', '98', '99', '100', '101', '102', '104', '105', '106', '107', '108', '109', '110', '111', '112', '113', '114', '115', '116', '117', '118', '119', '120', '121', '122', '123', '124', '125', '126', '127', '128', '129', '130', '131', '132', '133', '134', '135', '136', '137', '138', '139', '140', '141', '142'}

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