Module:Monsters: Difference between revisions

From Melvor Idle
(Fixed issues with not showing monster lists properly)
(tried to add an asterisk to max hits for monsers with specials)
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)
   if monster.hasSpecialAttack then
    return normalMaxHit..'*'
  else
    return math.max(specialMaxHit, normalMaxHit)
  end
end
end