Feed The Beast Wiki

Follow the Feed The Beast Wiki on Discord or Mastodon!

READ MORE

Feed The Beast Wiki
Register
Advertisement

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

local p = {}

function toGrid(aspect, size)
	return mw.getCurrentFrame():expandTemplate{title = "Gc", args = {aspect, size, mod = "TC4A", link = "none"}}
end

function p.aspect(params)
local aspect = params.args.aspect
local size = params.args.stacksize -- defaults to 1 via the template
	
if aspect == "A" then
	return toGrid("Aer", size)
elseif aspect == "T" then
	return toGrid("Terra", size)
elseif aspect == "I" then
	return toGrid("Ignis", size)
elseif aspect == "Aq" or aspect == "Q" then
	return toGrid("Aqua", size)
elseif aspect == "O" then
	return toGrid("Ordo", size)
elseif aspect == "P" then
	return toGrid("Perditio", size)
else
   	return toGrid(aspect, size)
end
end

return p
Advertisement