From 1d7a2d4eae8f9c2058575bcca80f626441f2c624 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Thu, 14 Sep 2023 10:09:10 -0400 Subject: [PATCH] Added sea level info to command. --- src/engine/devcmd/cmds/GetHeightCmd.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/engine/devcmd/cmds/GetHeightCmd.java b/src/engine/devcmd/cmds/GetHeightCmd.java index f2d61089..43d99eee 100644 --- a/src/engine/devcmd/cmds/GetHeightCmd.java +++ b/src/engine/devcmd/cmds/GetHeightCmd.java @@ -41,12 +41,15 @@ public class GetHeightCmd extends AbstractDevCmd { this.throwbackInfo(playerCharacter, "Current Zone : " + currentZone.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); Vector2f zoneLoc = ZoneManager.worldToZoneSpace(playerCharacter.getLoc(), heightmapZone); Vector2f gridSquare = heightmapZone.getHeightMap().getGridSquare(zoneLoc); this.throwbackInfo(playerCharacter, "Grid : " + (int) gridSquare.x + "x" + (int) gridSquare.y); + this.throwbackInfo(playerCharacter, "------------" + currentHeight); this.throwbackInfo(playerCharacter, "Parent : " + parentZone.getName()); this.throwbackInfo(playerCharacter, "Height returned : " + parentHeight); this.throwbackInfo(playerCharacter, "Character Height: " + playerCharacter.getCharacterHeight());