Commit 2712603b98277ba4b49b2764b2c09842a8647ac7

Authored by dg
1 parent 11e5236b

Explosion Expert now increases the damage done by the bomb if the affected zone …

…is less than the theorical possible zone. AKA: firing it in small rooms or cooridors will make BIG BOOMS !


git-svn-id: http://svn.net-core.org/repos/t-engine4@2887 51575b47-30f0-44d4-a5cc-537603b46e54
... ... @@ -188,8 +188,14 @@ newTalent{
188 188 mode = "passive",
189 189 points = 5,
190 190 info = function(self, t)
  191 + local theorical_nb = ({ 9, 25, 45, 77, 109, 145 })[1 + self:getTalentLevelRaw(self.T_EXPLOSION_EXPERT)]
  192 + local min = 1
  193 + local min = (math.log10(min) / (6 - self:getTalentLevelRaw(self.T_EXPLOSION_EXPERT)))
  194 + local max = theorical_nb
  195 + local max = (math.log10(max) / (6 - self:getTalentLevelRaw(self.T_EXPLOSION_EXPERT)))
  196 +
191 197 return ([[Your alchemist bombs now affect a radius of %d around them.
192   - Additionally tiles that would have been lost to terrain will now have the damage spread out over the effect.]]):format(self:getTalentLevelRaw(t))
  198 + Increases explosion damage by %d%% (one tile less than the full effect) to %d%% (explosion concentrated on only 1 tile)]]):format(self:getTalentLevelRaw(t), min*100, max*100)
193 199 end,
194 200 }
195 201
... ...