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

finish

git-svn-id: http://svn.net-core.org/repos/t-engine4@3205 51575b47-30f0-44d4-a5cc-537603b46e54
parent 4357e9bf
No related branches found
No related tags found
No related merge requests found
......@@ -22,9 +22,20 @@ desc = function(self, who)
local desc = {}
desc[#desc+1] = "You have found all the clues leading to the hidden treasure, there should be a way on the third level of the trollmire."
desc[#desc+1] = "It looks extremely dangerous however, beware."
if self:isEnded() then
desc[#desc+1] = "You have slain Bill and took his treasure."
end
return table.concat(desc, "\n")
end
on_status_change = function(self, who, status, sub)
if sub then
if self:isCompleted() then
who:setQuestStatus(self.id, engine.Quest.DONE)
end
end
end
on_grant = function(self)
if game.level.level == 3 then
self:enter_level3()
......
......@@ -102,6 +102,7 @@ This is the troll the notes spoke about, no doubt.]],
ai_tactic = resolvers.tactic"melee",
on_die = function(self, who)
game.player:resolveSource():grantQuest("trollmire-treasure")
if who and who.level and who.level == 1 then
world:gainAchievement("KILL_BILL", game.player)
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