Dev command output update.

This commit is contained in:
2023-09-11 15:59:08 -04:00
parent d7cde3a77f
commit 83fc129d05
+6 -3
View File
@@ -30,18 +30,21 @@ public class GetHeightCmd extends AbstractDevCmd {
Zone currentZone;
Zone parentZone;
Zone heightmapZone;
currentZone = ZoneManager.findSmallestZone(playerCharacter.getLoc());
heightmapZone = HeightMap.getNextZoneWithTerrain(currentZone);
parentZone = HeightMap.getNextZoneWithTerrain(currentZone.getParent());
float currentHeight = HeightMap.getWorldHeight(currentZone, playerCharacter.getLoc());
float parentHeight = HeightMap.getWorldHeight(parentZone, playerCharacter.getLoc());
this.throwbackInfo(playerCharacter, "Zone : " + currentZone.getName());
this.throwbackInfo(playerCharacter, "Current Zone : " + currentZone.getName());
this.throwbackInfo(playerCharacter, "Heightmap Zone : " + heightmapZone.getName());
this.throwbackInfo(playerCharacter, "Altitude : " + currentHeight);
Vector2f zoneLoc = ZoneManager.worldToZoneSpace(playerCharacter.getLoc(), currentZone);
Vector2f gridSquare = currentZone.getHeightMap().getGridSquare(zoneLoc);
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, "Parent : " + parentZone.getName());