forked from MagicBane/Server
deathshroud application
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user