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

local p = {}
local data = mw.loadData("Module:Data/Enemies")

function p.createInfobox(frame)
	local enemy = data[]
	local str = { 
		category = (enemy.isBoss == true and 'Boss' or 'Regular enemy'), 
		location = frame.args.location,
		scanner = frame.args.scanner,
		aggro = frame.args.aggro,
		faction = enemy.faction,
		health = formatNum(enemy.maxHealth),
		prespawn = frame.args.prespawn,
		summon = frame.args.summon
	return frame:expandTemplate{title = 'Enemy infobox', args = str}

function formatNum(i)
	return tostring(i):reverse():gsub("%d%d%d", "%1,"):reverse():gsub("^,", "")

return p
Cookies help us deliver our services. By using our services, you agree to our use of cookies.