From e914d8a7ab07629ee96ea0bbbfb2a82de8893def Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Sat, 11 Jun 2011 11:38:29 +0000 Subject: [PATCH] Very high level Explosion Expert will not make NPCs instakill git-svn-id: http://svn.net-core.org/repos/t-engine4@3626 51575b47-30f0-44d4-a5cc-537603b46e54 --- game/modules/tome/data/talents/spells/explosives.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/modules/tome/data/talents/spells/explosives.lua b/game/modules/tome/data/talents/spells/explosives.lua index 2ed0768470..8323c66685 100644 --- a/game/modules/tome/data/talents/spells/explosives.lua +++ b/game/modules/tome/data/talents/spells/explosives.lua @@ -92,7 +92,7 @@ newTalent{ for px, ys in pairs(grids) do for py, _ in pairs(ys) do nb = nb + 1 end end nb = theorical_nb - nb if nb > 0 then - local mult = (math.log10(nb) / (6 - self:getTalentLevelRaw(self.T_EXPLOSION_EXPERT))) + local mult = (math.log10(nb) / math.min(6 - self:getTalentLevelRaw(self.T_EXPLOSION_EXPERT), 5)) print("Adjusting explosion damage to account for ", nb, " lost tiles => ", mult * 100) dam = dam + dam * mult end -- GitLab