Module:Enemy List: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(Filter out training dummy)
(Commas)
 
Line 3: Line 3:
local album_xp_data = require('Module:Experience/data').album
local album_xp_data = require('Module:Experience/data').album
local Array = require('Module:Array')
local Array = require('Module:Array')
local lang = mw.language.getContentLanguage()

local function formatNum(n)
if n == nil then
return ''
end
return lang:formatNum(n)
end


local p = {}
local p = {}
Line 51: Line 59:
:tag('td'):wikitext(monster['Unlock level']):done()
:tag('td'):wikitext(monster['Unlock level']):done()
:tag('td'):wikitext(monster['Profession Level A']):done()
:tag('td'):wikitext(monster['Profession Level A']):done()
:tag('td'):wikitext(monster.Health):done()
:tag('td'):wikitext(formatNum(monster.Health)):done()
:tag('td'):wikitext(format_attack_style(monster['Attack style'])):done()
:tag('td'):wikitext(format_attack_style(monster['Attack style'])):done()
:tag('td'):wikitext(format_attack_style(monster['Immune to'])):done()
:tag('td'):wikitext(format_attack_style(monster['Immune to'])):done()
Line 62: Line 70:
row
row
:tag('td'):wikitext(table.concat(location_text, ', ')):done()
:tag('td'):wikitext(table.concat(location_text, ', ')):done()
:tag('td'):wikitext(monster.Experience):done()
:tag('td'):wikitext(formatNum(monster.Experience)):done()
:tag('td'):wikitext(monster['Album XP']):done()
:tag('td'):wikitext(formatNum(monster['Album XP'])):done()
end
end