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