From c81c910019e197a89153ea6c2a884f73448ed2b6 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Thu, 2 Nov 2023 09:08:28 -0400 Subject: [PATCH] Dev cmd updated --- src/engine/devcmd/cmds/GetHeightCmd.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/engine/devcmd/cmds/GetHeightCmd.java b/src/engine/devcmd/cmds/GetHeightCmd.java index 2b6a16af..873ae29d 100644 --- a/src/engine/devcmd/cmds/GetHeightCmd.java +++ b/src/engine/devcmd/cmds/GetHeightCmd.java @@ -53,11 +53,19 @@ public class GetHeightCmd extends AbstractDevCmd { gridSquare.x = (float) Math.floor(gridSquare.x); gridSquare.y = (float) Math.floor(gridSquare.y); + short top_left_pixel = heightmapZone.terrain.terrain_pixel_data[(int) gridSquare.x][(int) gridSquare.y]; + short top_right_pixel = heightmapZone.terrain.terrain_pixel_data[(int) gridSquare.x + 1][(int) gridSquare.y]; + short bottom_left_pixel = heightmapZone.terrain.terrain_pixel_data[(int) gridSquare.x][(int) gridSquare.y + 1]; + short bottom_right_pixel = heightmapZone.terrain.terrain_pixel_data[(int) gridSquare.x + 1][(int) gridSquare.y + 1]; + this.throwbackInfo(playerCharacter, "Current Zone : " + currentZone.zoneName); this.throwbackInfo(playerCharacter, "Heightmap Zone : " + heightmapZone.zoneName); this.throwbackInfo(playerCharacter, "Parent Zone: " + parentZone.zoneName); this.throwbackInfo(playerCharacter, "Grid : " + "[" + gridSquare.x + "]" + "[" + gridSquare.y + "]"); + this.throwbackInfo(playerCharacter, "Pixels : " + "[" + top_left_pixel + "]" + "[" + top_right_pixel + "]"); + this.throwbackInfo(playerCharacter, "Pixels : " + "[" + bottom_left_pixel + "]" + "[" + bottom_right_pixel + "]"); + this.throwbackInfo(playerCharacter, "offset: " + "[" + childZoneOffset.x + "]" + "[" + childZoneOffset.y + "]"); this.throwbackInfo(playerCharacter, "Normalized offset: " + "[" + normalizedOffset.x + "]" + "[" + normalizedOffset.y + "]"); this.throwbackInfo(playerCharacter, "template blend Values: (max/min): " + heightmapZone.template.min_blend + " /" + heightmapZone.template.max_blend);