From a9799017fbb6e7358aa5cad42a7258575ecce748 Mon Sep 17 00:00:00 2001
From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54>
Date: Wed, 3 Oct 2012 19:29:07 +0000
Subject: [PATCH] Adjusted the description of weapon mastery talents to mention
 they only work when using said weapon

git-svn-id: http://svn.net-core.org/repos/t-engine4@5724 51575b47-30f0-44d4-a5cc-537603b46e54
---
 .../modules/tome/data/talents/gifts/mindstar-mastery.lua | 9 +++++++--
 game/modules/tome/data/talents/spells/staff-combat.lua   | 2 +-
 game/modules/tome/data/talents/techniques/bow.lua        | 2 +-
 .../tome/data/talents/techniques/combat-training.lua     | 6 +++---
 game/modules/tome/data/talents/techniques/sling.lua      | 2 +-
 .../tome/data/talents/techniques/unarmed-training.lua    | 4 ++--
 6 files changed, 15 insertions(+), 10 deletions(-)

diff --git a/game/modules/tome/data/talents/gifts/mindstar-mastery.lua b/game/modules/tome/data/talents/gifts/mindstar-mastery.lua
index 3b46c0f9ad..59c4bb26c1 100644
--- a/game/modules/tome/data/talents/gifts/mindstar-mastery.lua
+++ b/game/modules/tome/data/talents/gifts/mindstar-mastery.lua
@@ -34,6 +34,8 @@ newTalent{
 	sustain_equilibrium = 18,
 	cooldown = 6,
 	tactical = { BUFF = 4 },
+	getDamage = function(self, t) return self:getTalentLevel(t) * 10 end,
+	getPercentInc = function(self, t) return math.sqrt(self:getTalentLevel(t) / 5) / 2 end,
 	activate = function(self, t)
 		local r = {
 			tmpid = self:addTemporaryValue("psiblades_active", self:getTalentLevel(t)),
@@ -55,9 +57,12 @@ newTalent{
 		return true
 	end,
 	info = function(self, t)
+		local damage = t.getDamage(self, t)
+		local inc = t.getPercentInc(self, t)
 		return ([[Channel your mental power through your wielded mindstars, generating psionic blades sprouting from the mindstars.
-		Mindstar psiblades have their damage modifiers (how much damage they gain from stats) increased to %d%% and their armour penetration by %d%%.]]):
-		format(100 * (1.3 + self:getTalentLevel(t) / 10), 100 * (1 + self:getTalentLevel(t) / 6.3))
+		Mindstar psiblades have their damage modifiers (how much damage they gain from stats) increased to %d%% and their armour penetration by %d%%.
+		Also increases Physical Power by %d and increases weapon damage by %d%% when using mindstars.]]):
+		format(100 * (1.3 + self:getTalentLevel(t) / 10), 100 * (1 + self:getTalentLevel(t) / 6.3), damage, 100 * inc)
 	end,
 }
 
diff --git a/game/modules/tome/data/talents/spells/staff-combat.lua b/game/modules/tome/data/talents/spells/staff-combat.lua
index afc99ad9d2..22db241bda 100644
--- a/game/modules/tome/data/talents/spells/staff-combat.lua
+++ b/game/modules/tome/data/talents/spells/staff-combat.lua
@@ -96,7 +96,7 @@ newTalent{
 	info = function(self, t)
 		local damage = t.getDamage(self, t)
 		local inc = t.getPercentInc(self, t)
-		return ([[Increases Physical Power by %d. Also increases damage done with staves by %d%%.]]):
+		return ([[Increases Physical Power by %d and increases weapon damage by %d%% when using staves.]]):
 		format(damage, 100 * inc)
 	end,
 }
diff --git a/game/modules/tome/data/talents/techniques/bow.lua b/game/modules/tome/data/talents/techniques/bow.lua
index 9ec91ffe59..6f27df4624 100644
--- a/game/modules/tome/data/talents/techniques/bow.lua
+++ b/game/modules/tome/data/talents/techniques/bow.lua
@@ -28,7 +28,7 @@ newTalent{
 	info = function(self, t)
 		local damage = t.getDamage(self, t)
 		local inc = t.getPercentInc(self, t)
-		return ([[Increases Physical Power by %d. Also increases damage done with bows by %d%%.
+		return ([[Increases Physical Power by %d and increases weapon damage by %d%% when using bows.
 		Also, when using Reload:
 		At level 2 it grants one more reload per turn.
 		At level 4 it grants two more reloads per turn.
diff --git a/game/modules/tome/data/talents/techniques/combat-training.lua b/game/modules/tome/data/talents/techniques/combat-training.lua
index 16d614b499..ef9c4f9a0f 100644
--- a/game/modules/tome/data/talents/techniques/combat-training.lua
+++ b/game/modules/tome/data/talents/techniques/combat-training.lua
@@ -107,7 +107,7 @@ newTalent{
 	info = function(self, t)
 		local damage = t.getDamage(self, t)
 		local inc = t.getPercentInc(self, t)
-		return ([[Increases Physical Power by %d. Also increases damage done with swords, axes, maces by %d%%]]):
+		return ([[Increases Physical Power by %d and increases weapon damage by %d%% when using swords, axes or maces.]]):
 		format(damage, 100*inc)
 	end,
 }
@@ -124,7 +124,7 @@ newTalent{
 	info = function(self, t)
 		local damage = t.getDamage(self, t)
 		local inc = t.getPercentInc(self, t)
-		return ([[Increases Physical Power by %d. Also increases damage done with daggers by %d%%]]):
+		return ([[Increases Physical Power by %d and increases weapon damage by %d%% when using daggers.]]):
 		format(damage, 100*inc)
 	end,
 }
@@ -141,7 +141,7 @@ newTalent{
 	info = function(self, t)
 		local damage = t.getDamage(self, t)
 		local inc = t.getPercentInc(self, t)
-		return ([[Increases Physical Power by %d. Also increases damage done with exotic weapons by %d%%]]):
+		return ([[Increases Physical Power by %d and increases weapon damage by %d%% when using exotic weapons.]]):
 		format(damage, 100*inc)
 	end,
 }
diff --git a/game/modules/tome/data/talents/techniques/sling.lua b/game/modules/tome/data/talents/techniques/sling.lua
index d640e2cab0..9bc1ea6748 100644
--- a/game/modules/tome/data/talents/techniques/sling.lua
+++ b/game/modules/tome/data/talents/techniques/sling.lua
@@ -28,7 +28,7 @@ newTalent{
 	info = function(self, t)
 		local damage = t.getDamage(self, t)
 		local inc = t.getPercentInc(self, t)
-		return ([[Increases Physical Power by %d. Also increases damage done with slings by %d%%.
+		return ([[Increases Physical Power by %d and increases weapon damage by %d%% when using slings.
 		Also, when using Reload:
 		At level 2 it grants one more reload per turn.
 		At level 4 it grants two more reloads per turn.
diff --git a/game/modules/tome/data/talents/techniques/unarmed-training.lua b/game/modules/tome/data/talents/techniques/unarmed-training.lua
index 6f50177cf2..221525c799 100644
--- a/game/modules/tome/data/talents/techniques/unarmed-training.lua
+++ b/game/modules/tome/data/talents/techniques/unarmed-training.lua
@@ -48,9 +48,9 @@ newTalent{
 	info = function(self, t)
 		local damage = t.getDamage(self, t)
 		local inc = t.getPercentInc(self, t)
-		return ([[Increases damage done with all unarmed attacks by %d%% (including grapples and kicks).  Also increases Physical Power by %d.
+		return ([[Increases Physical Power by %d and increases all unarmed damage by %d%% (including grapples and kicks).
 		Note that brawlers naturally gain 0.5 physical power per character level while unarmed (current brawler physical power bonus: %0.1f) and attack 40%% faster while unarmed.]]):
-		format(100*inc, damage, self.level * 0.5)
+		format(damage, 100*inc, self.level * 0.5)
 	end,
 }
 
-- 
GitLab