ACF10: Show proper messages when everyone dies
If everyone died, the game cannot continue, but you still win (since it's a sandbox mission).
--- 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