Difference between revisions of "Module:Availability/crate"

From Team Fortress Wiki
Jump to: navigation, search
Line 1: Line 1:
local p = {}
 
 
 
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 = {'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'}
  
function p.status(frame)
+
function status(num)
  num = frame.args[1]
 
 
   if active[num] ~= nil then
 
   if active[num] ~= nil then
 
     return 'Mann Co. Supply Crate/Active series'
 
     return 'Mann Co. Supply Crate/Active series'
Line 11: Line 8:
 
   end
 
   end
 
end
 
end
 
return p
 

Revision as of 01:43, 9 March 2016

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

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'}

function status(num)
  if active[num] ~= nil then
    return 'Mann Co. Supply Crate/Active series'
  else
    return 'Mann Co. Supply Crate/Retired series'
  end
end