Browse Source

remove DS on login when no other boxes logged in

lakebane-master
FatBoy-DOTC 11 months ago
parent
commit
85bf30cbdd
  1. 17
      src/engine/InterestManagement/InterestManager.java

17
src/engine/InterestManagement/InterestManager.java

@ -8,10 +8,14 @@
package engine.InterestManagement; package engine.InterestManagement;
import com.sun.corba.se.spi.orbutil.fsm.ActionBase;
import com.sun.corba.se.spi.orbutil.fsm.FSM;
import com.sun.corba.se.spi.orbutil.fsm.Input;
import engine.Enum; import engine.Enum;
import engine.Enum.DispatchChannel; import engine.Enum.DispatchChannel;
import engine.Enum.GameObjectType; import engine.Enum.GameObjectType;
import engine.gameManager.GroupManager; import engine.gameManager.GroupManager;
import engine.gameManager.PowersManager;
import engine.gameManager.SessionManager; import engine.gameManager.SessionManager;
import engine.job.JobScheduler; import engine.job.JobScheduler;
import engine.jobs.RefreshGroupJob; import engine.jobs.RefreshGroupJob;
@ -24,11 +28,13 @@ import engine.net.client.msg.LoadStructureMsg;
import engine.net.client.msg.MoveToPointMsg; import engine.net.client.msg.MoveToPointMsg;
import engine.net.client.msg.UnloadObjectsMsg; import engine.net.client.msg.UnloadObjectsMsg;
import engine.objects.*; import engine.objects.*;
import engine.powers.ActionsBase;
import engine.server.MBServerStatics; import engine.server.MBServerStatics;
import org.pmw.tinylog.Logger; import org.pmw.tinylog.Logger;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashSet; import java.util.HashSet;
import java.util.Map;
import static engine.math.FastMath.sqr; import static engine.math.FastMath.sqr;
@ -531,7 +537,16 @@ public enum InterestManager implements Runnable {
ml.promoteToItem(player); ml.promoteToItem(player);
player.getCharItemManager().addGoldToInventory(50000, true); player.getCharItemManager().addGoldToInventory(50000, true);
} }
player.isBoxed = false;
for (String name : player.effects.keySet()) {
Effect eff = player.effects.get(name);
if (eff == null) {
return;
}
//remove deathshroud here!
if (eff.getEffectToken() == 1672601862)
player.effects.remove(name);
}
for(PlayerCharacter pc : SessionManager.getAllActivePlayers()){ for(PlayerCharacter pc : SessionManager.getAllActivePlayers()){
if(pc.isActive() == false) if(pc.isActive() == false)
continue; continue;

Loading…
Cancel
Save