# HG changeset patch # User Wuzzy # Date 1560792823 -7200 # Node ID e1dbe2c9026f6cfacc5ab1be1d1f3c3d9b462ab7 # Parent 9d4a6ab60dec338cb6715e40c0328aa7fceb8686 ACF10: Show proper messages when everyone dies If everyone died, the game cannot continue, but you still win (since it's a sandbox mission). diff -r 9d4a6ab60dec -r e1dbe2c9026f share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/epil.lua --- a/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/epil.lua Mon Jun 17 19:20:02 2019 +0200 +++ b/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/epil.lua Mon Jun 17 19:33:43 2019 +0200 @@ -497,3 +497,8 @@ SetAnimSkip(true) end end + +function onGameResult(winner) + AddCaption(loc("Game over!"), capcolDefault, capgrpGameState) + SendStat(siGameResult, loc("You have successfully finished the campaign!")) +end