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
@@ -538,7 +538,7 @@ public enum InterestManager implements Runnable {
if(origin.machineID.equals(pc.getClientConnection().machineID)){
//add deatshroud effect
PowersManager.applyPower(player, player, Vector3fImmutable.ZERO, 1672601862, 999, false);
player.isBoxed = true;
return;
}
}
@@ -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();
}
+4
View File
@@ -175,6 +175,8 @@ public class PlayerCharacter extends AbstractCharacter {
private boolean dirtyLoad = true;
private final ReadWriteLock dirtyLock = new ReentrantReadWriteLock(true);
public boolean isBoxed = false;
/**
* No Id Constructor
*/
@@ -4811,6 +4813,8 @@ public class PlayerCharacter extends AbstractCharacter {
updateBlessingMessage();
this.safeZone = this.isInSafeZone();
if(this.isBoxed == true && this.containsEffect(1672601862) == false)
PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 1672601862, 40, false);
} catch (Exception e) {
Logger.error(e);