4,951
edits
(trying to add asterisk to table) |
Falterfire (talk | contribs) (Reverting to previous version - No apostrophes necessary for accounting for monster special attacks) |
||
Line 243: | Line 243: | ||
--Ensure that if the monster never does a normal attack, the normal max hit is irrelevant | --Ensure that if the monster never does a normal attack, the normal max hit is irrelevant | ||
if normalChance == 0 then normalMaxHit = 0 end | if normalChance == 0 then normalMaxHit = 0 end | ||
return math.max(specialMaxHit, normalMaxHit) | |||
end | end | ||
Line 547: | Line 543: | ||
tableTxt = tableTxt..'||'..Shared.formatnum(p.getMonsterHP(monster.name)) | tableTxt = tableTxt..'||'..Shared.formatnum(p.getMonsterHP(monster.name)) | ||
tableTxt = tableTxt..'||'..Shared.formatnum(p.getMonsterMaxHit(monster.name)) | tableTxt = tableTxt..'||'..Shared.formatnum(p.getMonsterMaxHit(monster.name)) | ||
tableTxt = tableTxt..'||'..p.getMonsterStyleIcon({monster.name, nolink='true'}) | tableTxt = tableTxt..'||'..p.getMonsterStyleIcon({monster.name, nolink='true'}) | ||
end | end |