Module:Sandbox/Soreness

From Growtopia
Revision as of 10:10, 27 April 2022 by >Sorenesss (Created page with "local p = {} local function shallowCopy(original) local copy = {} for key, value in pairs(original) do copy[key] = value end return copy end function p.ListRaritys()...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Documentation for this module may be created at Module:Sandbox/Soreness/doc

local p = {}

local function shallowCopy(original)
	local copy = {}
	for key, value in pairs(original) do
		copy[key] = value
	end
	return copy
end

function p.ListRaritys()
	for i=1, 400, 1
	do
		local copy = {}
		copy = shallowCopy("[".."[Category:Rarity "..i.."]]")
		if not next(copy) == nil then
			print("'''Rarity "..i..":'''<br>")
			while not next(copy) == nil
			do
				print(next)
			end
		end
	end
end