Taint of Telepathy increases mental saves. Should decrease

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
tiger_eye
Perspiring Physicist
Posts: 889
Joined: Thu Feb 17, 2011 5:20 am

Taint of Telepathy increases mental saves. Should decrease

#1 Post by tiger_eye »

A negative sign is missing somewhere for the Taint of Telepathy (ToT) mental saves reduction effect. Currently, ToT is the only thing that uses EFF_WEAKENED_MIND, so either of this diffs will work:

Code: Select all

Index: game/modules/tome/data/timed_effects.lua
===================================================================
--- game/modules/tome/data/timed_effects.lua	(revision 3570)
+++ game/modules/tome/data/timed_effects.lua	(working copy)
@@ -3693,7 +3693,7 @@
 	status = "detrimental",
 	parameters = { power=10 },
 	activate = function(self, eff)
-		eff.mindid = self:addTemporaryValue("combat_mentalresist", eff.power)
+		eff.mindid = self:addTemporaryValue("combat_mentalresist", -eff.power)
 	end,
 	deactivate = function(self, eff)
 		self:removeTemporaryValue("combat_mentalresist", eff.mindid)
or

Code: Select all

Index: game/modules/tome/data/talents/misc/inscriptions.lua
===================================================================
--- game/modules/tome/data/talents/misc/inscriptions.lua	(revision 3570)
+++ game/modules/tome/data/talents/misc/inscriptions.lua	(working copy)
@@ -846,7 +846,7 @@
 			range = rad,
 			actor = 1,
 		})
-		self:setEffect(self.EFF_WEAKENED_MIND, 10, {power=20})
+		self:setEffect(self.EFF_WEAKENED_MIND, 10, {power=-20})
 		return true
 	end,
 	info = function(self, t)

Post Reply