add passive achievement check when sleeping/respawning

This commit is contained in:
Nathan Watson
2020-11-24 21:05:28 -08:00
parent 825538d653
commit 592c676e98
2 changed files with 2 additions and 0 deletions

View File

@@ -48,6 +48,7 @@ public final class Constants {
public static final String FILENAME_SAVEGAME_FILENAME_PREFIX = "savegame";
public static final String PLACEHOLDER_PLAYERNAME = "$playername";
public static final String CHEAT_DETECTION_FOLDER = "dEAGyGE3YojqXjI3x4x7";
public static final String PASSIVE_ACHIEVEMENT_CHECK_PHRASE = "passive_achievement_check";
public static final Random rnd = new Random();
public static int rollValue(final ConstRange r) { return rollValue(r.max, r.current); }

View File

@@ -149,6 +149,7 @@ public final class MapController {
controllers.monsterSpawnController.spawnAll(world.model.currentMaps.map, world.model.currentMaps.tileMap);
world.model.worldData.tickWorldTime(20);
controllers.gameRoundController.resetRoundTimers();
mapScriptExecutor.proceedToPhrase(controllers.getResources(), Constants.PASSIVE_ACHIEVEMENT_CHECK_PHRASE, true, true);
}
public void rest(MapObject area) {