From b05d984966360778086965d90e6c3834b31bd13b Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Tue, 11 Dec 2012 15:48:13 +0000 Subject: [PATCH] Dont assign talents on birth does not break tutorial git-svn-id: http://svn.net-core.org/repos/t-engine4@6043 51575b47-30f0-44d4-a5cc-537603b46e54 --- game/modules/tome/data/birth/descriptors.lua | 3 +++ game/modules/tome/dialogs/Birther.lua | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/game/modules/tome/data/birth/descriptors.lua b/game/modules/tome/data/birth/descriptors.lua index b8f2b42ebe..066641e855 100644 --- a/game/modules/tome/data/birth/descriptors.lua +++ b/game/modules/tome/data/birth/descriptors.lua @@ -133,6 +133,9 @@ newBirthDescriptor{ __allow_rod_recall = false, __allow_transmo_chest = false, }, + game_state = { + always_learn_birth_talents = true, + }, } newBirthDescriptor{ type = "difficulty", diff --git a/game/modules/tome/dialogs/Birther.lua b/game/modules/tome/dialogs/Birther.lua index 02469ea9d9..3a02148f36 100644 --- a/game/modules/tome/dialogs/Birther.lua +++ b/game/modules/tome/dialogs/Birther.lua @@ -238,7 +238,7 @@ function _M:atEnd(v) self.actor.has_custom_tile = self.has_custom_tile.f end -- Prevent the game from auto-assigning talents if necessary. - if (not config.settings.tome.autoassign_talents_on_birth) then + if (not config.settings.tome.autoassign_talents_on_birth) and not game.state.birth.always_learn_birth_talents then for _, d in pairs(self.descriptors) do local unlearned_talents = { } -- GitLab