Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Sandbox/Soreness: Difference between revisions

From Growtopia Wiki
Sorenesss (talk | contribs)
mNo edit summary
Sorenesss (talk | contribs)
mNo edit summary
Line 10: Line 10:


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


return p
return p

Revision as of 10:42, 27 April 2022

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()
	local s = {}
	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
				table.insert(s, next(copy))
			end
			--]]
		--end
	end
	return s;
end

return p