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

game will save automatically when turning in merchant 4k gold or turning in alchemist quests

git-svn-id: http://svn.net-core.org/repos/t-engine4@4440 51575b47-30f0-44d4-a5cc-537603b46e54
parent 7f3fc6c7
No related branches found
No related tags found
No related merge requests found
......@@ -83,6 +83,7 @@ local maker_list = function()
art:identify(true)
player:addObject(player.INVEN_INVEN, art)
player:incMoney(-4000)
game:saveGame()
newChat{ id="naming",
text = "Do you want to name your item?\n"..tostring(art:getTextualDesc()),
......
......@@ -202,6 +202,7 @@ end
on_turnin = function(self, player, alch_picked, e_picked, player_last_elixir)
player:setQuestStatus("brotherhood-of-alchemists", engine.Quest.COMPLETED, self.e[alch_picked][e_picked].full)
player:setQuestStatus("brotherhood-of-alchemists", engine.Quest.COMPLETED, self.e[alch_picked][e_picked].poached)
game:saveGame()
if player_last_elixir == false and self:isCompleted(self.e[alch_picked][1].full) and self:isCompleted(self.e[alch_picked][2].full) and self:isCompleted(self.e[alch_picked][3].full) then
player:setQuestStatus("brotherhood-of-alchemists", engine.Quest.DONE)
self.winner = self.e[alch_picked][1].alchemist
......
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