Module:Sandbox/Soreness: Difference between revisions
From Growtopia Wiki
More actions
mNo edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
local p = {} | local p = {} | ||
function table.clone(org) | |||
return {table.unpack(org)} | |||
end | end | ||
function p.ListRaritys() | function p.ListRaritys() | ||
local s = {} | local s = {} | ||
for i= | for i=363, 364, 1 | ||
do | do | ||
local copy = {} | local copy = {} | ||
copy = | copy = table.clone("[".."[Category:Rarity "..i.."]]") | ||
if not | if not copy == nil then | ||
table.insert(s,"'''Rarity "..i..":'''<br>") | table.insert(s,"'''Rarity "..i..":'''<br>") | ||
-- | -- | ||
Revision as of 11:26, 27 April 2022
Documentation for this module may be created at Module:Sandbox/Soreness/doc
local p = {}
function table.clone(org)
return {table.unpack(org)}
end
function p.ListRaritys()
local s = {}
for i=363, 364, 1
do
local copy = {}
copy = table.clone("[".."[Category:Rarity "..i.."]]")
if not copy == nil then
table.insert(s,"'''Rarity "..i..":'''<br>")
--
while not next(copy) == nil
do
table.insert(s, next(copy))
end
--
end
end
return table.concat(s);
end
return p