[svn, patch] Power Is Money bonus calculated incorrectly

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
complexityQuantifier
Higher
Posts: 56
Joined: Sun Jan 16, 2011 2:52 pm

[svn, patch] Power Is Money bonus calculated incorrectly

#1 Post by complexityQuantifier »

The bonuses from "Power is Money" are calculated differently for mental and spell saves than they are for physical saves. Right now the Physical save matches the talent description (while the other two saves are getting larger bonuses). This patch makes all three match the description:

Code: Select all

Index: game/modules/tome/class/interface/Combat.lua
===================================================================
--- game/modules/tome/class/interface/Combat.lua	(revision 3610)
+++ game/modules/tome/class/interface/Combat.lua	(working copy)
@@ -829,7 +829,7 @@
 function _M:combatSpellResist()
 	local add = 0
 	if self:knowTalent(self.T_POWER_IS_MONEY) then
-		add = add + util.bound(self.money / (60 - self:getTalentLevelRaw(self.T_POWER_IS_MONEY) * 5), 0, self:getTalentLevelRaw(self.T_POWER_IS_MONEY) * 10)
+		add = add + util.bound(self.money / (80 - self:getTalentLevelRaw(self.T_POWER_IS_MONEY) * 5), 0, self:getTalentLevelRaw(self.T_POWER_IS_MONEY) * 10)
 	end
 	return self.combat_spellresist + (self:getMag() + self:getWil() + (self:getLck() - 50) * 0.5) * 0.35 + add
 end
@@ -842,7 +842,7 @@
 		add = add + t.getMental(self, t)
 	end
 	if self:knowTalent(self.T_POWER_IS_MONEY) then
-		add = add + util.bound(self.money / (60 - self:getTalentLevelRaw(self.T_POWER_IS_MONEY) * 5), 0, self:getTalentLevelRaw(self.T_POWER_IS_MONEY) * 10)
+		add = add + util.bound(self.money / (80 - self:getTalentLevelRaw(self.T_POWER_IS_MONEY) * 5), 0, self:getTalentLevelRaw(self.T_POWER_IS_MONEY) * 10)
 	end
 	return self.combat_mentalresist + (self:getCun() + self:getWil() + (self:getLck() - 50) * 0.5) * 0.35 + add
 end

jenx
Sher'Tul Godslayer
Posts: 2263
Joined: Mon Feb 14, 2011 11:16 pm

Re: [svn, patch] Power Is Money bonus calculated incorrectly

#2 Post by jenx »

I THOUGHT this was happening but then figured I must be misunderstanding it. I hope this is included in next nets. I LOVE this talent.
MADNESS rocks

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: [svn, patch] Power Is Money bonus calculated incorrectly

#3 Post by darkgod »

fixed
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Post Reply