17,101
edits
(getTabletTable: Apply same sort order as getMarkTable) |
(getTabletTable: Add max hit column, right align cost columns to improve appearance) |
||
Line 55: | Line 55: | ||
result = result..'\r\n|- class="headerRow-0"' | result = result..'\r\n|- class="headerRow-0"' | ||
result = result..'\r\n!colspan="2"|Name!!'..Icons.Icon({'Summoning', type='skill', notext=true})..' Level' | result = result..'\r\n!colspan="2"|Name!!'..Icons.Icon({'Summoning', type='skill', notext=true})..' Level' | ||
result = result..'!!Tier!!Effect!!Description!!Shard Cost!!Secondary!!Creation XP' | result = result..'!!Tier!!Effect!!' .. Icons.Icon({'Melee', notext=true, nolink=true}) .. ' Max Hit!!Description!!Shard Cost!!Secondary!!Creation XP' | ||
local Familiars = p.getFamiliars() | local Familiars = p.getFamiliars() | ||
Line 69: | Line 69: | ||
for i, Fam in Shared.skpairs(Familiars) do | for i, Fam in Shared.skpairs(Familiars) do | ||
local maxHit = Fam.summoningMaxHit | |||
local maxHitText = '' | |||
if maxHit ~= nil then maxHitText = 'style="text-align:right"; data-sort-value="' .. maxHit .. '"|' .. Shared.formatnum(maxHit) end | |||
local rowText = '|-' | local rowText = '|-' | ||
rowText = rowText..'\r\n|data-sort-value="'..Fam.name..'"|'..Icons.Icon({Fam.name, type='item', notext=true, size='50'}) | rowText = rowText..'\r\n|data-sort-value="'..Fam.name..'"|'..Icons.Icon({Fam.name, type='item', notext=true, size='50'}) | ||
Line 74: | Line 77: | ||
rowText = rowText..'||style="text-align:right"|'..Fam.summoningLevel | rowText = rowText..'||style="text-align:right"|'..Fam.summoningLevel | ||
rowText = rowText..'||style="text-align:right"|'..Fam.summoningTier | rowText = rowText..'||style="text-align:right"|'..Fam.summoningTier | ||
rowText = rowText..'||'..Fam.description..'||'..Fam.summoningDescription | rowText = rowText..'||'..Fam.description..'||'..maxHitText..'||'..Fam.summoningDescription | ||
--Currently assuming the shard cost is the same for all recipe variants | --Currently assuming the shard cost is the same for all recipe variants | ||
Line 86: | Line 89: | ||
end | end | ||
end | end | ||
rowText = rowText..'||'..table.concat(ShardCostArray, ', ') | rowText = rowText..'||style="text-align:right"|'..table.concat(ShardCostArray, ', ')..' ' | ||
--Now to get all the other cost options | --Now to get all the other cost options | ||
Line 111: | Line 114: | ||
table.insert(OtherCostArray, table.concat(nonShardArray, ', ')) | table.insert(OtherCostArray, table.concat(nonShardArray, ', ')) | ||
end | end | ||
rowText = rowText..'||'..table.concat(OtherCostArray, "<br/>'''OR''' ") | rowText = rowText..'||style="text-align:right"|'..table.concat(OtherCostArray, "<br/>'''OR''' ") | ||
rowText = rowText..'||style="text-align:right"|'..(5 + 2 * math.floor(Fam.summoningLevel / 5)) | rowText = rowText..'||style="text-align:right"|'..(5 + 2 * math.floor(Fam.summoningLevel / 5)) |