equal
deleted
inserted
replaced
19 --]] |
19 --]] |
20 |
20 |
21 HedgewarsScriptLoad("/Scripts/Locale.lua") |
21 HedgewarsScriptLoad("/Scripts/Locale.lua") |
22 HedgewarsScriptLoad("/Scripts/Tracker.lua") |
22 HedgewarsScriptLoad("/Scripts/Tracker.lua") |
23 HedgewarsScriptLoad("/Scripts/Params.lua") |
23 HedgewarsScriptLoad("/Scripts/Params.lua") |
|
24 HedgewarsScriptLoad("/Scripts/Utils.lua") |
24 |
25 |
25 --[[ |
26 --[[ |
26 MUTANT SCRIPT |
27 MUTANT SCRIPT |
27 ]] |
28 ]] |
28 |
29 |
790 crates[gear] = gear |
791 crates[gear] = gear |
791 elseif GetGearType(gear) == gtATFinishGame then |
792 elseif GetGearType(gear) == gtATFinishGame then |
792 if not gameOver then |
793 if not gameOver then |
793 local winner = createEndGameStats() |
794 local winner = createEndGameStats() |
794 if winner then |
795 if winner then |
795 SendStat(siGameResult, string.format(loc("%s wins!"), winner)) |
796 local winText = formatEngineString(GetEngineString("TMsgStrId", sidWinner), winner) |
796 AddCaption(string.format(loc("%s wins!"), winner), capcolDefault, capgrpGameState) |
797 SendStat(siGameResult, winText) |
|
798 AddCaption(winText, capcolDefault, capgrpGameState) |
797 end |
799 end |
798 gameOver = true |
800 gameOver = true |
799 end |
801 end |
800 end |
802 end |
801 end |
803 end |