Browse Source

arena que messages

lakebane-optimize
FatBoy-DOTC 2 weeks ago
parent
commit
8038c2ebe2
  1. 8
      src/engine/devcmd/cmds/InfoCmd.java
  2. 1
      src/engine/objects/Corpse.java

8
src/engine/devcmd/cmds/InfoCmd.java

@ -18,6 +18,7 @@ import engine.gameManager.BuildingManager; @@ -18,6 +18,7 @@ import engine.gameManager.BuildingManager;
import engine.gameManager.SessionManager;
import engine.math.Vector3fImmutable;
import engine.objects.*;
import engine.server.MBServerStatics;
import engine.util.StringUtils;
import java.text.DecimalFormat;
@ -530,6 +531,13 @@ public class InfoCmd extends AbstractDevCmd { @@ -530,6 +531,13 @@ public class InfoCmd extends AbstractDevCmd {
}
break;
case Corpse:
Corpse corpse = (Corpse)target;
Long timeLeft = MBServerStatics.CORPSE_CLEANUP_TIMER_MS - (System.currentTimeMillis() - corpse.spawnedTime);
output += "Despawn in: " + timeLeft;
output += newline;
break;
}
throwbackInfo(pc, output);

1
src/engine/objects/Corpse.java

@ -43,6 +43,7 @@ public class Corpse extends AbstractWorldObject { @@ -43,6 +43,7 @@ public class Corpse extends AbstractWorldObject {
private int inBuildingID = 0;
private int inFloorID = -1;
private int inBuilding = -1;
public Long spawnedTime = 0L;
/**
* No Id Constructor

Loading…
Cancel
Save