Difference between revisions of "Module:Availability/crate"
(Tables don't work how I think they do.) |
|||
Line 2: | Line 2: | ||
function status(num) | function status(num) | ||
− | if | + | for _, n in ipairs(active) do |
− | + | if n == num then | |
− | + | return 'Mann Co. Supply Crate/Active series' | |
− | + | end | |
end | end | ||
+ | return 'Mann Co. Supply Crate/Retired series' | ||
end | end |
Revision as of 02:54, 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) 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