Module:Monsters: Difference between revisions

Reverting to previous version - No apostrophes necessary for accounting for monster special attacks
(trying to add asterisk to table)
(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
   if monster.hasSpecialAttack then
   return math.max(specialMaxHit, normalMaxHit)
    return math.max(specialMaxHit, normalMaxHit)..'*'
  else
    return math.max(specialMaxHit, normalMaxHit)
  end
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))
    if monster.hasSpecialAttack then
      tableTxt = tableTxt..'*'
    end
     tableTxt = tableTxt..'||'..p.getMonsterStyleIcon({monster.name, nolink='true'})
     tableTxt = tableTxt..'||'..p.getMonsterStyleIcon({monster.name, nolink='true'})
   end
   end