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

Winning as an alchemist by self sacrifice will correctly record the win

git-svn-id: http://svn.net-core.org/repos/t-engine4@4361 51575b47-30f0-44d4-a5cc-537603b46e54
parent 4e85b90d
No related branches found
No related tags found
No related merge requests found
......@@ -121,8 +121,9 @@ function win(self, how)
elseif how == "yeek-sacrifice" then world:gainAchievement("YEEK_SACRIFICE", game.player)
end
game.player.winner = how
game:registerDialog(require("engine.dialogs.ShowText").new("Winner", "win", {playername=game.player.name, how=how}, game.w * 0.6))
local p = game:getPlayer(true)
p.winner = how
game:registerDialog(require("engine.dialogs.ShowText").new("Winner", "win", {playername=p.name, how=how}, game.w * 0.6))
end
function onWin(self, who)
......
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