deathshroud application

This commit is contained in:
2024-02-05 20:19:41 -06:00
parent c7d26f9dcc
commit 5840de216d
3 changed files with 31 additions and 1 deletions
@@ -135,6 +135,17 @@ public enum SimulationManager {
+ e.getMessage());
e.printStackTrace();
}
try {
if ((_minePulseTime != 0)
&& (System.currentTimeMillis() > _minePulseTime))
pulseMines();
} catch (Exception e) {
Logger.error(
"Fatal error in City Pulse: DISABLED. Error Message : "
+ e.getMessage());
e.printStackTrace();
}
SimulationManager.executionTime = Duration.between(startTime, Instant.now());
@@ -163,6 +174,21 @@ public enum SimulationManager {
if (player == null)
continue;
for(PlayerCharacter pc : SessionManager.getAllActivePlayers()){
if(pc.isActive() == false)
continue;
if(pc.isEnteredWorld() == false)
continue;
if(player.getClientConnection().machineID.equals(pc.getClientConnection().machineID)){
//add deatshroud effect
player.isBoxed = true;
break;
}
}
player.update();
}