From 7cfac40aa8495d08388ee5b818a7467848c94fdf Mon Sep 17 00:00:00 2001 From: Steve Date: Sun, 15 Apr 2018 09:26:15 +0100 Subject: [PATCH] Added game complete mission quit message. --- src/defs.h | 1 + src/system/strings.c | 3 ++- src/world/world.c | 4 ++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/defs.h b/src/defs.h index 71547ff..ae6dde6 100644 --- a/src/defs.h +++ b/src/defs.h @@ -403,6 +403,7 @@ enum ST_QUIT_HUB, ST_QUIT_TUTORIAL, ST_QUIT_SAVE, + ST_QUIT_FREE_PLAY, ST_QUIT_LOSE, ST_MIAS, ST_ITEMS, diff --git a/src/system/strings.c b/src/system/strings.c index 80da0a9..b110666 100644 --- a/src/system/strings.c +++ b/src/system/strings.c @@ -61,6 +61,7 @@ void initStrings(void) app.strings[ST_QUIT_HUB] = _("Quit and return to hub?"); app.strings[ST_QUIT_TUTORIAL] = _("As this is a tutorial mission, you can skip it and move onto the main game."); app.strings[ST_QUIT_SAVE] = _("Your progress on this mission will be saved."); + app.strings[ST_QUIT_FREE_PLAY] = _("Your progress on this mission will not be saved, but you will keep any keys, Hearts, and Cells that you have collected."); app.strings[ST_QUIT_LOSE] = _("Warning: if you quit now, you will lose all progress on this level."); app.strings[ST_MIAS] = _("MIAs"); @@ -83,7 +84,7 @@ void initStrings(void) app.strings[ST_OVERWRITE_1] = _("Are you sure you want to overwrite this game?"); app.strings[ST_OVERWRITE_2] = _("All progress will be lost!"); - app.strings[ST_FREEPLAY] = _("As the game is now complete, free play for this mission has been unlocked. You may replay it as often as you wish."); + app.strings[ST_FREEPLAY] = _("As the game is now complete, free play for this mission has been unlocked. You may replay it as often as you wish. Hearts and Cells will be randomly available."); app.strings[ST_HEART_CELL] = _("All objectives for this misson have been completed. However, there is a Cell or a Heart left to find. See if you can locate it."); app.strings[ST_HUB_MISSIONS] = _("Missions: %d / %d"); diff --git a/src/world/world.c b/src/world/world.c index f97772b..12cb42d 100644 --- a/src/world/world.c +++ b/src/world/world.c @@ -807,6 +807,10 @@ void drawQuit(void) { drawText(SCREEN_WIDTH / 2, r.y + 65, 26, TA_CENTER, colors.white, app.strings[ST_QUIT_TUTORIAL]); } + else if (game.isComplete) + { + drawText(SCREEN_WIDTH / 2, r.y + 65, 26, TA_CENTER, colors.white, app.strings[ST_QUIT_FREE_PLAY]); + } else if (world.isReturnVisit) { drawText(SCREEN_WIDTH / 2, r.y + 65, 26, TA_CENTER, colors.white, app.strings[ST_QUIT_SAVE]);