Anonymous

Module:Monsters: Difference between revisions

From Melvor Idle
Added sleepDamageMultiplier to the things the MaxHit calculation takes into account
(Reverting to previous version - No apostrophes necessary for accounting for monster special attacks)
(Added sleepDamageMultiplier to the things the MaxHit calculation takes into account)
Line 237: Line 237:
       if specAttack.stunDamageMultiplier ~= nil and specAttack.stunDamageMultiplier > 1 then
       if specAttack.stunDamageMultiplier ~= nil and specAttack.stunDamageMultiplier > 1 then
         thisMax = thisMax * specAttack.stunDamageMultiplier
         thisMax = thisMax * specAttack.stunDamageMultiplier
      end
      if specAttack.sleepDamageMultiplier ~= nil and specAttack.sleepDamageMultiplier > 1 then
        thisMax = thisMax * specAttack.sleepDamageMultiplier
       end
       end
       if thisMax > specialMaxHit then specialMaxHit = thisMax end
       if thisMax > specialMaxHit then specialMaxHit = thisMax end