mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Give MotU trophy in normal mode
This makes it so that it is possible to obtain the Master of the Universe trophy/achievement, usually unlocked by beating No Death Mode, outside of NDM. There are several conditions that need to be met: 1. The game needs to be started from a new game and cannot be from loading a save. 2. Accessibility modes (invincibility and slowdown) must never be enabled. If either condition is violated, then the boolean that keeps track of NDM eligibility will be set to false.
This commit is contained in:
@@ -2651,6 +2651,16 @@ void scriptclass::startgamemode(const enum StartMode mode)
|
||||
graphics.showcutscenebars = true;
|
||||
graphics.setbars(320);
|
||||
load("intro");
|
||||
|
||||
if (!game.nocompetitive())
|
||||
{
|
||||
game.nodeatheligible = true;
|
||||
vlog_debug("NDM trophy is eligible.");
|
||||
}
|
||||
else
|
||||
{
|
||||
game.invalidate_ndm_trophy();
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -3088,6 +3098,7 @@ void scriptclass::hardreset(void)
|
||||
|
||||
game.nodeathmode = false;
|
||||
game.nocutscenes = false;
|
||||
game.nodeatheligible = false;
|
||||
|
||||
for (i = 0; i < (int) SDL_arraysize(game.crewstats); i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user