From 809ec9e2a7dcd21a45af2dd6e8e2951b258b37b1 Mon Sep 17 00:00:00 2001
From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54>
Date: Tue, 22 Feb 2011 16:44:21 +0000
Subject: [PATCH] Vim now automatically increases when a foe is killed by
 1+WIL/10; making Willpower useful for Corrupters

git-svn-id: http://svn.net-core.org/repos/t-engine4@2796 51575b47-30f0-44d4-a5cc-537603b46e54
---
 game/modules/tome/class/Actor.lua | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/game/modules/tome/class/Actor.lua b/game/modules/tome/class/Actor.lua
index 010fc096ad..6455b8638c 100644
--- a/game/modules/tome/class/Actor.lua
+++ b/game/modules/tome/class/Actor.lua
@@ -1182,6 +1182,7 @@ function _M:die(src)
 	end
 
 	-- Increase vim
+	if src and src.knowTalent and src:knowTalent(src.T_VIM_POOL) then src:incVim(1 + src:getWil() / 10)) end
 	if src and src.attr and src:attr("vim_on_death") and not self:attr("undead") then src:incVim(src:attr("vim_on_death")) end
 
 	if src and src.resolveSource and src:resolveSource().player then
@@ -1648,14 +1649,14 @@ function _M:preUseTalent(ab, silent, fake)
 	-- Paradox is special, it has no max, but the higher it is the higher the chance of something bad happening
 	if (ab.paradox or ab.sustain_paradox) and not fake then
 		local pa = ab.paradox or ab.sustain_paradox
-		
+
 		--check for Paradox Mastery
 		if self:knowTalent(self.T_PARADOX_MASTERY) and self:isTalentActive(self.T_PARADOX_MASTERY) then
 			modifier = self:getWil() * (1 + (self:getTalentLevel(self.T_PARADOX_MASTERY)/10) or 0 )
 		else
 			modifier = self:getWil()
 		end
-		
+
 		--print("[Paradox] Will modifier: ", modifier, "::", self:getParadox())
 		local chance = math.pow (((self:getParadox() - modifier)/200), 2)*((100 + self:combatFatigue()) / 100)
 		-- Fail ? lose energy and 1/2 more paradox
-- 
GitLab