Browse Source

DevCmd update.

feature-workorder
MagicBot 1 year ago
parent
commit
ecc7a152f7
  1. 22
      src/engine/devcmd/cmds/GetHeightCmd.java

22
src/engine/devcmd/cmds/GetHeightCmd.java

@ -24,20 +24,26 @@ public class GetHeightCmd extends AbstractDevCmd { @@ -24,20 +24,26 @@ public class GetHeightCmd extends AbstractDevCmd {
}
@Override
protected void _doCmd(PlayerCharacter pc, String[] words,
protected void _doCmd(PlayerCharacter playerCharacter, String[] words,
AbstractGameObject target) {
float height = HeightMap.getWorldHeight(pc.getLoc());
Zone currentZone;
Zone parentZone;
this.throwbackInfo(pc, "Altitude : " + height);
currentZone = ZoneManager.findSmallestZone(playerCharacter.getLoc());
parentZone = currentZone.getParent();
this.throwbackInfo(pc, "Character Height: " + pc.getCharacterHeight());
this.throwbackInfo(pc, "Character Height to start swimming: " + pc.centerHeight);
float currentHeight = HeightMap.getWorldHeight(currentZone, playerCharacter.getLoc());
float parentHeight = HeightMap.getWorldHeight(parentZone, playerCharacter.getLoc());
Zone zone = ZoneManager.findSmallestZone(pc.getLoc());
this.throwbackInfo(pc, "Water Level : " + zone.getSeaLevel());
this.throwbackInfo(pc, "Character Water Level Above : " + (pc.getCharacterHeight() + height - zone.getSeaLevel()));
this.throwbackInfo(playerCharacter, "Altitude : " + currentHeight);
this.throwbackInfo(playerCharacter, "Parent Altitude : " + parentHeight);
this.throwbackInfo(playerCharacter, "Character Height: " + playerCharacter.getCharacterHeight());
this.throwbackInfo(playerCharacter, "Character Height to start swimming: " + playerCharacter.centerHeight);
this.throwbackInfo(playerCharacter, "Water Level : " + currentZone.getSeaLevel());
this.throwbackInfo(playerCharacter, "Character Water Level Above : " + (playerCharacter.getCharacterHeight() + currentHeight - currentZone.getSeaLevel()));
}

Loading…
Cancel
Save