Module:ModuleGenerator

From The First Descendant Wiki
Revision as of 06:04, 6 June 2024 by Communos (talk | contribs)

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

local p = {}

function p.socketFileName(socket)
	local sockets = {
		almandine = "",
		cerulean = "",
		malachite = "",
		rutile = "",
		xantic = "",
	}
	return sockets[socket]
end

function p.rarityFileName(rarity)
	local rarities = {
		standard = "",
		rare = "",
		ultimate = "",
		transcendent = "",
	}
	return rarities[rarity]
end

function contains(table, key)
	for _, value in pairs(table) do
		if value == key then
			return true
		end
	end
	return false
end

return p