Proper Overrides

Moved some things around so its easier to find using proper overrides instead of inserting code in random places.

Works the same way.
This commit is contained in:
ChocoTaco 2019-10-06 16:30:41 -04:00
parent d10d3cb1e9
commit 083af158ae
7 changed files with 153 additions and 35 deletions

View file

@ -145,4 +145,22 @@ function SetNextMapGetRandoms( %client )
$SetNextMissionMapSlot7 = "RampartsDM";
$SetNextMissionMapSlot8 = "ShrineDM";
}
}
}
// Reset SetNextMission every map change
package ResetSetNextMission
{
function DefaultGame::gameOver(%game)
{
Parent::gameOver(%game);
//Reset SetNextMission Restore
$SetNextMissionRestore = "";
}
};
// Prevent package from being activated if it is already
if (!isActivePackage(ResetSetNextMission))
activatePackage(ResetSetNextMission);