Difference between revisions of "Module:Availability/crate"
(22 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
− | local active = { | + | 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 | + | 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 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