From 08bfd45e4916731c9c86119c0f31a5f85b9b9419 Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Thu, 2 Jun 2011 12:13:34 +0000 Subject: [PATCH] The heart of the sandworm queen now grants unlockable harmoy tree if unknown, learns it if known and increases mastery if learnt git-svn-id: http://svn.net-core.org/repos/t-engine4@3545 51575b47-30f0-44d4-a5cc-537603b46e54 --- game/modules/tome/data/zones/sandworm-lair/objects.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/game/modules/tome/data/zones/sandworm-lair/objects.lua b/game/modules/tome/data/zones/sandworm-lair/objects.lua index 6dadc785f9..6dcad85b9e 100644 --- a/game/modules/tome/data/zones/sandworm-lair/objects.lua +++ b/game/modules/tome/data/zones/sandworm-lair/objects.lua @@ -47,8 +47,10 @@ newEntity{ game.logPlayer(who, "You have %d class talent point(s) to spend. Press G to use them.", who.unused_talents) game.logPlayer(who, "You have %d generic talent point(s) to spend. Press G to use them.", who.unused_generics) - if who:knowTalentType("wild-gift/") then + if who:knowTalentType("wild-gift/harmony") then who:setTalentTypeMastery("wild-gift/harmony", who:getTalentTypeMastery("wild-gift/harmony") + 0.1) + elseif who:knowTalentType("wild-gift/harmony") == false then + who:learnTalentType("wild-gift/harmony", true) else who:learnTalentType("wild-gift/harmony", false) end -- GitLab