Browse Source

characters logged in exceeding max:1 will be given PR999 death shroud

lakebane-master
FatBoy-DOTC 9 months ago
parent
commit
5cd86bc033
  1. 12
      src/engine/InterestManagement/InterestManager.java

12
src/engine/InterestManagement/InterestManager.java

@ -12,9 +12,11 @@ import engine.Enum; @@ -12,9 +12,11 @@ import engine.Enum;
import engine.Enum.DispatchChannel;
import engine.Enum.GameObjectType;
import engine.gameManager.GroupManager;
import engine.gameManager.PowersManager;
import engine.gameManager.SessionManager;
import engine.job.JobScheduler;
import engine.jobs.RefreshGroupJob;
import engine.math.Vector3fImmutable;
import engine.net.AbstractNetMsg;
import engine.net.Dispatch;
import engine.net.DispatchMessage;
@ -24,6 +26,7 @@ import engine.net.client.msg.LoadStructureMsg; @@ -24,6 +26,7 @@ import engine.net.client.msg.LoadStructureMsg;
import engine.net.client.msg.MoveToPointMsg;
import engine.net.client.msg.UnloadObjectsMsg;
import engine.objects.*;
import engine.powers.EffectsBase;
import engine.server.MBServerStatics;
import org.pmw.tinylog.Logger;
@ -525,6 +528,15 @@ public enum InterestManager implements Runnable { @@ -525,6 +528,15 @@ public enum InterestManager implements Runnable {
updateStaticList(player, origin);
updateMobileList(player, origin);
// apply the 1 box restriction
for(PlayerCharacter pc : SessionManager.getAllActivePlayers()){
if(origin.machineID == pc.getClientConnection().machineID){
//add deatshroud effect
PowersManager.applyPower(player, player, Vector3fImmutable.ZERO, 1672601862, 999, false);
return;
}
}
}
public synchronized void HandleLoadForTeleport(PlayerCharacter playerCharacter) {

Loading…
Cancel
Save