Commit 3dd6d727a9af2c83270e3aa733a001e594dcec83

Authored by dg
1 parent e3af593e

Derth arena and trollmire treasure quests now correctly finishes


git-svn-id: http://svn.net-core.org/repos/t-engine4@3403 51575b47-30f0-44d4-a5cc-537603b46e54
... ... @@ -26,3 +26,7 @@ desc = function(self, who)
26 26 end
27 27 return table.concat(desc, "\n")
28 28 end
  29 +
  30 +on_status_change = function(self, who, status, sub)
  31 + if self:isCompleted() then who:setQuestStatus(self.id, engine.Quest.DONE) end
  32 +end
... ...
... ... @@ -29,11 +29,7 @@ desc = function(self, who)
29 29 end
30 30
31 31 on_status_change = function(self, who, status, sub)
32   - if sub then
33   - if self:isCompleted() then
34   - who:setQuestStatus(self.id, engine.Quest.DONE)
35   - end
36   - end
  32 + if self:isCompleted() then who:setQuestStatus(self.id, engine.Quest.DONE) end
37 33 end
38 34
39 35 on_grant = function(self)
... ...