Difference between revisions of "Module:Availability/crate"
Unaveragejoe (talk | contribs) (Removed crates not listed in Active Series.) |
m |
||
(24 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | local active = {'124', '125', '126'} | + | 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
This article has been marked for deletion. Reason given: Replaced by Module:Availability/active Editors: If this content is being deprecated, kindly remove it from ALL translated pages before marking it for deletion. Staff: what links here – subpages – history (last) – logs – delete |
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