17,101
edits
No edit summary |
(Fix max hit handling due to change in source data) |
||
Line 115: | Line 115: | ||
local function isCombatFamiliar(fam) | local function isCombatFamiliar(fam) | ||
local item = Items.getItemByID(fam.productID) | local item = Items.getItemByID(fam.productID) | ||
local maxHit = Items._getItemStat(item, 'summoningMaxhit') | local maxHit = Items._getItemStat(item, 'summoningMaxhitAbyssal') or Items._getItemStat(item, 'summoningMaxhit') | ||
return maxHit ~= nil | return maxHit ~= nil | ||
end | end | ||
Line 154: | Line 154: | ||
if category == 'Combat' then | if category == 'Combat' then | ||
local maxHit = Items._getItemStat(item, 'summoningMaxhit') * 10 | local maxHit = (Items._getItemStat(item, 'summoningMaxhitAbyssal') or Items._getItemStat(item, 'summoningMaxhit')) * 10 | ||
row:tag('td'):wikitext(Num.formatnum(maxHit)) | row:tag('td'):wikitext(Num.formatnum(maxHit)) | ||
:css('text-align', 'right') | :css('text-align', 'right') |