Module:Mazunki/Dungeons: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 156: Line 156:
monsterHp = p._getAfflictedAverageHP()
monsterHp = p._getAfflictedAverageHP()
dr = 0.2 -- afflicted always have +20% dr
dr = 0.2 -- afflicted always have +20% dr
-- it's probably a bit higher, even, due to some monsters having natural dr
-- but good enough
else  
else  
monsterHp = Monsters._getMonsterHP(monster)
monsterHp = Monsters._getMonsterHP(monster)
Line 166: Line 164:
for i, eq in Shared.skpairs(monster.equipmentStats) do
for i, eq in Shared.skpairs(monster.equipmentStats) do
if eq.key == "damageReduction" then
if eq.key == "damageReduction" then
dr = eq.value/100
dr = dr + eq.value/100
end
end
end
end
else
dr = 0
end
end
892

edits