From 3649533a926ec248b5776e6cd4584a6246e56116 Mon Sep 17 00:00:00 2001
From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54>
Date: Wed, 9 Nov 2011 07:37:32 +0000
Subject: [PATCH] cant unlearn a few more talents

git-svn-id: http://svn.net-core.org/repos/t-engine4@4631 51575b47-30f0-44d4-a5cc-537603b46e54
---
 .../tome/data/talents/chronomancy/chronomancy.lua | 15 ++++++++-------
 .../tome/data/talents/spells/golemancy.lua        |  1 +
 .../tome/data/talents/spells/stone-alchemy.lua    |  1 +
 .../tome/data/talents/techniques/grappling.lua    |  1 +
 .../tome/data/talents/techniques/pugilism.lua     |  1 +
 .../data/talents/techniques/unarmed-training.lua  |  1 +
 6 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/game/modules/tome/data/talents/chronomancy/chronomancy.lua b/game/modules/tome/data/talents/chronomancy/chronomancy.lua
index 42d7bf2b46..9e7b0ca5cf 100644
--- a/game/modules/tome/data/talents/chronomancy/chronomancy.lua
+++ b/game/modules/tome/data/talents/chronomancy/chronomancy.lua
@@ -28,6 +28,7 @@ newTalent{
 	tactical = { PARADOX = 2 },
 	no_npc_use = true,
 	no_energy = true,
+	no_unlearn_last = true,
 	getAnomaly = function(self, t) return 6 - (self:getTalentLevelRaw(self.T_STATIC_HISTORY) or 0) end,
 	getPower = function(self, t) return math.floor(self:getWil()/2) end,
 	action = function(self, t)
@@ -96,14 +97,14 @@ newTalent{
 		if self:hasEffect(self.T_PRECOGNITION) then
 			save_bonus = save_bonus * 2
 		end
-		
+
 		local mental_save, physical_save, spell_save, defense_bonus = 0
 		if type == "mental" then mental_save = save_bonus end
 		if type == "physical" then physical_save = save_bonus end
-		if type == "spell" then spell_save = save_bonus end		
-		if type == "defense" then defense_bonus = save_bonus end		
+		if type == "spell" then spell_save = save_bonus end
+		if type == "defense" then defense_bonus = save_bonus end
 		print("Spin Fate", type, mental_save, physical_save, spell_save, defense_bonus)
-		
+
 		self:setEffect(self.EFF_SPIN_FATE, t.getDuration(self, t), {max_bonus = t.getSaveBonus(self, t) * 10, defense = defense_bonus, mental = mental_save, physical = physical_save, spell = spell_save})
 		return true
 	end,
@@ -159,7 +160,7 @@ newTalent{
 		-- clear the chronoworlds and the timed effect
 		if game._chronoworlds then game._chronoworlds = nil end
 		game.player.tmp[self.EFF_PRECOGNITION] = nil
-		
+
 		-- check for Spin Fate
 		local eff = self:hasEffect(self.EFF_SPIN_FATE)
 		local mental_power, physical_power, spell_power, accuracy = 0
@@ -170,7 +171,7 @@ newTalent{
 			spell_power = (eff.cur_spell or eff.spell) * percentage
 			accuracy_power = (eff.cur_defense or eff.defense) * percentage
 		end
-							
+
 		self:setEffect(self.EFF_PRESCIENCE, t.getDuration(self, t), {detect=t.getDetection(self, t), mental=mental_power, physical=physical_power, spell=spell_power, accuracy=accuracy_power})
 		if self:knowTalent(self.T_FORESIGHT) then
 			local t = self:getTalentFromId(self.T_FORESIGHT)
@@ -183,7 +184,7 @@ newTalent{
 		local duration = t.getDuration(self, t)
 		local percent = t.getPercentage(self, t)
 		return ([[While under the affects of Precognition you may use Moment of Prescience to cancel it, walking the timeline exactly as you did before to reach the present.
-		Doing so will pull your awareness fully into the moment, increasing your stealth detection and see invisibility by %d for %d turns. 
+		Doing so will pull your awareness fully into the moment, increasing your stealth detection and see invisibility by %d for %d turns.
 		If you have Spin Fate going when you cast this spell you'll gain %d%% of your spin as accuracy, attack power, spell power, or mind power as appropriate.
 		This spell takes no time to cast.]]):
 		format(detect, duration, percent)
diff --git a/game/modules/tome/data/talents/spells/golemancy.lua b/game/modules/tome/data/talents/spells/golemancy.lua
index c28adabe38..bfb11f63cd 100644
--- a/game/modules/tome/data/talents/spells/golemancy.lua
+++ b/game/modules/tome/data/talents/spells/golemancy.lua
@@ -140,6 +140,7 @@ newTalent{
 	cooldown = 20,
 	mana = 10,
 	no_npc_use = true,
+	no_unlearn_last = true,
 	getHeal = function(self, t)
 		local ammo = self:hasAlchemistWeapon()
 		return 50 + self:combatTalentSpellDamage(self.T_GOLEM_POWER, 15, 550, ((ammo and ammo.alchemist_power or 0) + self:combatSpellpower()) / 2)
diff --git a/game/modules/tome/data/talents/spells/stone-alchemy.lua b/game/modules/tome/data/talents/spells/stone-alchemy.lua
index 88f5d5f637..09d24c6459 100644
--- a/game/modules/tome/data/talents/spells/stone-alchemy.lua
+++ b/game/modules/tome/data/talents/spells/stone-alchemy.lua
@@ -24,6 +24,7 @@ newTalent{
 	points = 1,
 	mana = 30,
 	no_npc_use = true,
+	no_unlearn_last = true,
 	make_gem = function(self, t, base_define)
 		local nb = rng.range(40, 80)
 		local gem = game.zone:makeEntityByName(game.level, "object", "ALCHEMIST_" .. base_define)
diff --git a/game/modules/tome/data/talents/techniques/grappling.lua b/game/modules/tome/data/talents/techniques/grappling.lua
index f81a9bc59f..d7fd52b0a5 100644
--- a/game/modules/tome/data/talents/techniques/grappling.lua
+++ b/game/modules/tome/data/talents/techniques/grappling.lua
@@ -27,6 +27,7 @@ newTalent{
 	tactical = { BUFF = 2 },
 	type_no_req = true,
 	no_npc_use = true, -- They dont need it since it auto switches anyway
+	no_unlearn_last = true,
 	getSave = function(self, t) return self:getStr(20, true) end,
 	getDamage = function(self, t) return self:getStr(10, true) end,
 	activate = function(self, t)
diff --git a/game/modules/tome/data/talents/techniques/pugilism.lua b/game/modules/tome/data/talents/techniques/pugilism.lua
index e3ea5b7d78..0f588be00a 100644
--- a/game/modules/tome/data/talents/techniques/pugilism.lua
+++ b/game/modules/tome/data/talents/techniques/pugilism.lua
@@ -36,6 +36,7 @@ newTalent{
 	tactical = { BUFF = 2 },
 	type_no_req = true,
 	no_npc_use = true, -- They dont need it since it auto switches anyway
+	no_unlearn_last = true,
 	getAttack = function(self, t) return self:getDex(25, true) end,
 	getDamage = function(self, t) return self:getDex(50, true) end,
 	activate = function(self, t)
diff --git a/game/modules/tome/data/talents/techniques/unarmed-training.lua b/game/modules/tome/data/talents/techniques/unarmed-training.lua
index 6bc5ce855b..0b774cef59 100644
--- a/game/modules/tome/data/talents/techniques/unarmed-training.lua
+++ b/game/modules/tome/data/talents/techniques/unarmed-training.lua
@@ -26,6 +26,7 @@ newTalent{
 	hide = true,
 	mode = "passive",
 	points = 1,
+	no_unlearn_last = true,
 	getDamage = function(self, t) return self.level * 0.5 end,
 	on_learn = function(self, t)
 		self.combat.sound = "actions/melee"
-- 
GitLab