Skip to content
Snippets Groups Projects
Commit e914d8a7 authored by dg's avatar dg
Browse files

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
parent b29447d2
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment