Skip to content
Snippets Groups Projects
Commit 425ea470 authored by dg's avatar dg
Browse files

Fixed quickbirth for Alchemists

git-svn-id: http://svn.net-core.org/repos/t-engine4@1541 51575b47-30f0-44d4-a5cc-537603b46e54
parent 2f54c4ab
No related branches found
No related tags found
No related merge requests found
......@@ -159,6 +159,8 @@ function _M:newGame()
-- For quickbirth
savefile_pipe:push("", "entity", self.player)
self.creating_player = false
self.player:check("on_birth_done")
end, true))
end
......@@ -189,6 +191,8 @@ function _M:newGame()
self.player:removeQuest(self.player.starting_quest)
self.player:grantQuest(self.player.starting_quest)
self.creating_player = false
self.player:check("on_birth_done")
else
-- Continue as normal
return Birther.quickBirth(b)
......
......@@ -142,16 +142,18 @@ newBirthDescriptor{
{type="potion", subtype="potion", name="potion of lesser mana", ego_chance=-1000},
},
resolvers.generic(function(self)
-- Invoke the golem
local t = self:getTalentFromId(self.T_REFIT_GOLEM)
t.action(self, t)
-- Make and wield some alchemist gems
local t = self:getTalentFromId(self.T_CREATE_ALCHEMIST_GEMS)
local gem = t.make_gem(self, t, "GEM_AGATE")
self:wearObject(gem, true, true)
self:sortInven()
end),
on_birth_done = function(self)
-- Invoke the golem
local t = self:getTalentFromId(self.T_REFIT_GOLEM)
t.action(self, t)
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