Skip to content
Snippets Groups Projects
Commit 9f052ed6 authored by dg's avatar dg
Browse files

unhide exotic mastery when learnt

git-svn-id: http://svn.net-core.org/repos/t-engine4@5786 51575b47-30f0-44d4-a5cc-537603b46e54
parent a511d1c9
No related branches found
No related tags found
No related merge requests found
......@@ -264,7 +264,7 @@ local function generate_rewards()
local doit = function(npc, player) game.party:reward("Select the party member to receive the reward:", function(player)
if game.player:knowTalentType(t.type[1]) == nil then player:setTalentTypeMastery(t.type[1], 0.8) end
player:learnTalent(tid, true, level, {no_unlearn=true})
--if t.hide then player.__show_special_talents[tid] = true end
if t.hide then player.__show_special_talents = player.__show_special_talents or {} player.__show_special_talents[tid] = true end
player:hasQuest(npc.quest_id).reward_message = ("%s talent %s (+%d level(s))"):format(game.player:knowTalent(tid) and "improved" or "learnt", t.name, level)
end) end
answers[#answers+1] = {
......
......@@ -160,6 +160,8 @@ uberTalent{
on_learn = function(self, t)
self:learnTalent(self.T_SPIT_POISON, true, 5)
self:learnTalent(self.T_EXOTIC_WEAPONS_MASTERY, true, 5)
self.__show_special_talents = self.__show_special_talents or {}
self.__show_special_talents[self.T_EXOTIC_WEAPONS_MASTERY] = true
self.can_breath = self.can_breath or {}
self.can_breath.water = (self.can_breath.water or 0) + 1
end,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment