Difference between revisions of "Module:Availability/crate"

From Team Fortress Wiki
Jump to: navigation, search
m (Add #136)
m
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
local active = {'62', '63', '64', '65', '66', '67', '68', '69', '92', '103', '105', '109', '110', '111', '112', '113', '114', '115', '116', '135', '136'}
+
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)
 
function status(num)
Line 5: Line 6:
 
     if n == num then
 
     if n == num then
 
       return 'Mann Co. Supply Crate/Active series'
 
       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
 
   end
 
   end
 
   return 'Mann Co. Supply Crate/Retired series'
 
   return 'Mann Co. Supply Crate/Retired series'
 
end
 
end

Latest revision as of 02:16, 8 December 2023

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