Browse Source

deathshroud application

lakebane-master
FatBoy-DOTC 9 months ago
parent
commit
5840de216d
  1. 2
      src/engine/InterestManagement/InterestManager.java
  2. 26
      src/engine/gameManager/SimulationManager.java
  3. 4
      src/engine/objects/PlayerCharacter.java

2
src/engine/InterestManagement/InterestManager.java

@ -538,7 +538,7 @@ public enum InterestManager implements Runnable {
if(origin.machineID.equals(pc.getClientConnection().machineID)){ if(origin.machineID.equals(pc.getClientConnection().machineID)){
//add deatshroud effect //add deatshroud effect
PowersManager.applyPower(player, player, Vector3fImmutable.ZERO, 1672601862, 999, false); player.isBoxed = true;
return; return;
} }
} }

26
src/engine/gameManager/SimulationManager.java

@ -135,6 +135,17 @@ public enum SimulationManager {
+ e.getMessage()); + e.getMessage());
e.printStackTrace(); 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()); SimulationManager.executionTime = Duration.between(startTime, Instant.now());
@ -163,6 +174,21 @@ public enum SimulationManager {
if (player == null) if (player == null)
continue; 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(); player.update();
} }

4
src/engine/objects/PlayerCharacter.java

@ -175,6 +175,8 @@ public class PlayerCharacter extends AbstractCharacter {
private boolean dirtyLoad = true; private boolean dirtyLoad = true;
private final ReadWriteLock dirtyLock = new ReentrantReadWriteLock(true); private final ReadWriteLock dirtyLock = new ReentrantReadWriteLock(true);
public boolean isBoxed = false;
/** /**
* No Id Constructor * No Id Constructor
*/ */
@ -4811,6 +4813,8 @@ public class PlayerCharacter extends AbstractCharacter {
updateBlessingMessage(); updateBlessingMessage();
this.safeZone = this.isInSafeZone(); this.safeZone = this.isInSafeZone();
if(this.isBoxed == true && this.containsEffect(1672601862) == false)
PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 1672601862, 40, false);
} catch (Exception e) { } catch (Exception e) {
Logger.error(e); Logger.error(e);

Loading…
Cancel
Save