From e2321f84b96a0d919a8fdb6cb9d7f95fd0201098 Mon Sep 17 00:00:00 2001 From: tzann Date: Wed, 29 Jul 2020 02:03:48 +0200 Subject: [PATCH] Add check for singular trinkets and crewmates in NDM game over screen --- desktop_version/src/Render.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desktop_version/src/Render.cpp b/desktop_version/src/Render.cpp index f6d94baa..426f59d8 100644 --- a/desktop_version/src/Render.cpp +++ b/desktop_version/src/Render.cpp @@ -675,10 +675,10 @@ void menurender() graphics.drawcrewman(169-(3*42)+(i*42), 68, i, game.crewstats[i], true); } std::string tempstring; - tempstring = "You rescued " + help.number(game.crewrescued()) + " crewmates"; + tempstring = "You rescued " + help.number(game.crewrescued()) + (game.crewrescued() == 1 ? " crewmate" : " crewmates"); graphics.Print(0, 100, tempstring, tr, tg, tb, true); - tempstring = "and found " + help.number(game.trinkets()) + " trinkets."; + tempstring = "and found " + help.number(game.trinkets()) + (game.trinkets() == 1 ? " trinket." : " trinkets."); graphics.Print(0, 110, tempstring, tr, tg, tb, true); tempstring = "You managed to reach:";