Anonymous

Module:Monsters: Difference between revisions

From Melvor Idle
_getMonsterER: Correct calculation for magic ER
(Moving getDungeonRewards to CombatAreas/Tables because it just makes more sense)
(_getMonsterER: Correct calculation for magic ER)
Line 224: Line 224:
     defBonus = monster.defenceBonusRanged + 64
     defBonus = monster.defenceBonusRanged + 64
   elseif style == "Magic" then
   elseif style == "Magic" then
     effDefLvl = math.floor(monster.magicLevel * 0.7 + monster.defenceLevel * 0.3) + 9
     effDefLvl = math.floor(monster.magicLevel * 0.7) + math.floor(monster.defenceLevel * 0.3) + 9
     defBonus = monster.defenceBonusMagic + 64
     defBonus = monster.defenceBonusMagic + 64
   else
   else