mirror of
https://github.com/OMGeeky/andors-trail.git
synced 2026-02-23 15:38:29 +01:00
add passive achievement check when sleeping/respawning
This commit is contained in:
@@ -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); }
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user