forked from MagicBane/Server
Added sea level info to command.
This commit is contained in:
@@ -41,12 +41,15 @@ public class GetHeightCmd extends AbstractDevCmd {
|
|||||||
|
|
||||||
this.throwbackInfo(playerCharacter, "Current Zone : " + currentZone.getName());
|
this.throwbackInfo(playerCharacter, "Current Zone : " + currentZone.getName());
|
||||||
this.throwbackInfo(playerCharacter, "Heightmap Zone : " + heightmapZone.getName());
|
this.throwbackInfo(playerCharacter, "Heightmap Zone : " + heightmapZone.getName());
|
||||||
|
this.throwbackInfo(playerCharacter, "Zone Height: " + heightmapZone.worldAltitude);
|
||||||
|
this.throwbackInfo(playerCharacter, "Sea Level: " + heightmapZone.getSeaLevel());
|
||||||
this.throwbackInfo(playerCharacter, "Height returned: " + currentHeight);
|
this.throwbackInfo(playerCharacter, "Height returned: " + currentHeight);
|
||||||
|
|
||||||
Vector2f zoneLoc = ZoneManager.worldToZoneSpace(playerCharacter.getLoc(), heightmapZone);
|
Vector2f zoneLoc = ZoneManager.worldToZoneSpace(playerCharacter.getLoc(), heightmapZone);
|
||||||
Vector2f gridSquare = heightmapZone.getHeightMap().getGridSquare(zoneLoc);
|
Vector2f gridSquare = heightmapZone.getHeightMap().getGridSquare(zoneLoc);
|
||||||
|
|
||||||
this.throwbackInfo(playerCharacter, "Grid : " + (int) gridSquare.x + "x" + (int) gridSquare.y);
|
this.throwbackInfo(playerCharacter, "Grid : " + (int) gridSquare.x + "x" + (int) gridSquare.y);
|
||||||
|
this.throwbackInfo(playerCharacter, "------------" + currentHeight);
|
||||||
this.throwbackInfo(playerCharacter, "Parent : " + parentZone.getName());
|
this.throwbackInfo(playerCharacter, "Parent : " + parentZone.getName());
|
||||||
this.throwbackInfo(playerCharacter, "Height returned : " + parentHeight);
|
this.throwbackInfo(playerCharacter, "Height returned : " + parentHeight);
|
||||||
this.throwbackInfo(playerCharacter, "Character Height: " + playerCharacter.getCharacterHeight());
|
this.throwbackInfo(playerCharacter, "Character Height: " + playerCharacter.getCharacterHeight());
|
||||||
|
|||||||
Reference in New Issue
Block a user