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

Yeeks winners should correctly be noted in the vault

git-svn-id: http://svn.net-core.org/repos/t-engine4@5550 51575b47-30f0-44d4-a5cc-537603b46e54
parent 69591ca6
No related branches found
No related tags found
No related merge requests found
...@@ -51,6 +51,7 @@ The Way will never forget you. Now go and make history! ...@@ -51,6 +51,7 @@ The Way will never forget you. Now go and make history!
player:die(player) player:die(player)
player:setQuestStatus("high-peak", engine.Quest.COMPLETED, "yeek") player:setQuestStatus("high-peak", engine.Quest.COMPLETED, "yeek")
player:hasQuest("high-peak"):win("yeek-sacrifice") player:hasQuest("high-peak"):win("yeek-sacrifice")
game:saveGame()
end}, end},
{"But... I did so much, I could do so much more for the Way by staying alive!", jump="yeek-unsure"}, {"But... I did so much, I could do so much more for the Way by staying alive!", jump="yeek-unsure"},
} }
...@@ -66,6 +67,7 @@ You will do as asked, for the good of all Yeeks! The Way is always right. ...@@ -66,6 +67,7 @@ You will do as asked, for the good of all Yeeks! The Way is always right.
player:die(player) player:die(player)
player:setQuestStatus("high-peak", engine.Quest.COMPLETED, "yeek") player:setQuestStatus("high-peak", engine.Quest.COMPLETED, "yeek")
player:hasQuest("high-peak"):win("yeek-sacrifice") player:hasQuest("high-peak"):win("yeek-sacrifice")
game:saveGame()
end}, end},
} }
} }
......
...@@ -46,7 +46,7 @@ end ...@@ -46,7 +46,7 @@ end
on_status_change = function(self, who, status, sub) on_status_change = function(self, who, status, sub)
if sub then if sub then
if self:isCompleted("elandar-dead") and self:isCompleted("argoniel-dead") then if self:isCompleted("elandar-dead") and self:isCompleted("argoniel-dead") and not who:isQuestStatus("high-peak", engine.Quest.DONE) then
who:setQuestStatus(self.id, engine.Quest.DONE) who:setQuestStatus(self.id, engine.Quest.DONE)
-- Remove all remaining hostiles -- Remove all remaining hostiles
......
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