Page 1 of 1

[b43] offhand weapon multiplier talent displays

Posted: Fri Nov 30, 2012 3:58 pm
by tiger_eye
Currently, the talent descriptions of "Corrupted Strength" and "Dual Weapon Training" don't correctly take into account the upper limit. This tends to lead people into thinking these talents can be broken at high levels (such as in ID or on a random guardian), which is not the case. Below and attached is an (untested) patch to fix this:

Code: Select all

diff --git a/game/modules/tome/data/talents/corruptions/reaving-combat.lua b/game/modules/tome/data/talents/corruptions/reaving-combat.lua
index 36280d6..0fb2f44 100644
--- a/game/modules/tome/data/talents/corruptions/reaving-combat.lua
+++ b/game/modules/tome/data/talents/corruptions/reaving-combat.lua
@@ -36,7 +36,7 @@ newTalent{
 	info = function(self, t)
 		return ([[Allows you to dual wield any type of one handed weapons and increases the damage of the off-hand weapon to %d%%.
 		Also casting a spell (which uses a turn) will give a free melee attack at a random target in melee range for %d%% blight damage.]]):
-		format(100 / (2 - self:getTalentLevel(t) / 9), 100 * self:combatTalentWeaponDamage(t, 0.5, 1.1))
+		format(100 / (2 - (math.min(self:getTalentLevel(t), 8) / 9)), 100 * self:combatTalentWeaponDamage(t, 0.5, 1.1))
 	end,
 }
 
diff --git a/game/modules/tome/data/talents/techniques/dualweapon.lua b/game/modules/tome/data/talents/techniques/dualweapon.lua
index c66db5c..3feb4a4 100644
--- a/game/modules/tome/data/talents/techniques/dualweapon.lua
+++ b/game/modules/tome/data/talents/techniques/dualweapon.lua
@@ -24,7 +24,7 @@ newTalent{
 	points = 5,
 	require = techs_dex_req1,
 	info = function(self, t)
-		return ([[Increases the damage of the off-hand weapon to %d%%.]]):format(100 / (2 - self:getTalentLevel(t) / 6))
+		return ([[Increases the damage of the off-hand weapon to %d%%.]]):format(100 / (2 - (math.min(self:getTalentLevel(t), 8) / 6)))
 	end,
 }
 

Re: [b43] offhand weapon multiplier talent displays

Posted: Tue Dec 04, 2012 12:42 am
by darkgod
fixed