Module:Ss

local getArgs = require('Module:Arguments').getArgs local Wdstt = require('Module:Wdstt').main local p = {}

function p.main(frame) local args = getArgs(frame) return p._main(args) end

function p._main(args) local arg = string.lower(args[1]) local b_arg = args[2] or "boss drop" local erbox_arg = args[2] or "End room boxes" if args[2] then b_arg = b_arg.." boss drop" end local cases = { ['sr'] = Wdstt({'SR', 'Secret Room'}), ['er'] = Wdstt({'ER', 'End room'}), ['plusle'] = Wdstt({'ID', 'Plusle ID'}), ['minun'] = Wdstt({'ID', 'Minun ID'}), ['ks'] = Wdstt({'KS', 'Kecleon Shop'}), ['srbox'] = Wdstt({'https://static.wikia.nocookie.net/pmysteryuniverse/images/4/43/Treasure_Chest_S_Yellow.png', 'Secret Room boxes'}), ['erbox'] = Wdstt({'https://static.wikia.nocookie.net/pmysteryuniverse/images/5/5a/Treasure_Chest_S_Black.png', erbox_arg}), ['srer'] = Wdstt({'https://static.wikia.nocookie.net/pmysteryuniverse/images/2/20/Treasure_Chest_S_Yellow_Black.png', 'Secret Room and end room boxes'}), ['ersr'] = Wdstt({'https://static.wikia.nocookie.net/pmysteryuniverse/images/2/20/Treasure_Chest_S_Yellow_Black.png', 'Secret Room and end room boxes'}), ['h'] = Wdstt({'H', 'Hidden'}), ['b'] = Wdstt({'B', b_arg}) }

return cases[arg] end

return p