Difference between revisions of "Module:Damage display"

From ALttP Speedrunning Wiki
Jump to: navigation, search
(Created page with "local p = {} function p.main(frame) local args = frame:getParent().args local dmg = args[1] or 0 return p._main(dmg) end function p._main(d) return d end return p")
(No difference)

Revision as of 11:58, 6 June 2019

Documentation for this module may be created at display/doc&action=edit&redlink=1 Module:Damage display/doc

local p = {}

function p.main(frame)
	local args = frame:getParent().args

	local dmg = args[1] or 0

	return p._main(dmg)
end

function p._main(d)
	return d
end

return p