Anonymous

Module:Skills/Summoning: Difference between revisions

From Melvor Idle
m
Added mark tier to getMarkTable
(getTabletTable: Apply formatting when familiar has no max hit)
m (Added mark tier to getMarkTable)
Line 13: Line 13:
result = result..'\r\n|- class="headerRow-0"'
result = result..'\r\n|- class="headerRow-0"'
result = result..'\r\n!colspan="2"|Mark!!'..Icons.Icon({'Summoning', type='skill', notext=true})..' Level'
result = result..'\r\n!colspan="2"|Mark!!'..Icons.Icon({'Summoning', type='skill', notext=true})..' Level'
result = result..'!!Discovered in'
result = result..'!!Tier!!Discovered in'


local Familiars = GameData.getEntities(SkillData.Summoning.recipes, function(recipe) return true end)
local Familiars = GameData.getEntities(SkillData.Summoning.recipes, function(recipe) return true end)
Line 26: Line 26:
rowText = rowText..'||' .. Icons.getExpansionIcon(Fam.id) .. Icons.Icon({item.name, 'Mark of the ' .. item.name, type='mark', noicon=true})
rowText = rowText..'||' .. Icons.getExpansionIcon(Fam.id) .. Icons.Icon({item.name, 'Mark of the ' .. item.name, type='mark', noicon=true})
rowText = rowText..'||style="text-align:right"|'..Fam.level
rowText = rowText..'||style="text-align:right"|'..Fam.level
rowText = rowText..'||style="text-align:right"|'..Fam.tier
local discoveredArray = {}
local discoveredArray = {}
for j, SkillID in ipairs(Fam.skillIDs) do
for j, SkillID in ipairs(Fam.skillIDs) do