Browse Source

Devcmd output updated.

combat-2
MagicBot 1 year ago
parent
commit
75c56cbeee
  1. 2
      src/engine/InterestManagement/HeightMap.java
  2. 8
      src/engine/devcmd/cmds/GetHeightCmd.java

2
src/engine/InterestManagement/HeightMap.java

@ -30,7 +30,7 @@ public class HeightMap { @@ -30,7 +30,7 @@ public class HeightMap {
// Class variables
public static final float SCALEVALUE = 1.0f / 256;
public static float SCALEVALUE = 1.0f / 256;
// Heightmap data for all zones.
public static final HashMap<Integer, HeightMap> heightmapByLoadNum = new HashMap<>();

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

@ -46,8 +46,14 @@ public class GetHeightCmd extends AbstractDevCmd { @@ -46,8 +46,14 @@ public class GetHeightCmd extends AbstractDevCmd {
this.throwbackInfo(playerCharacter, "Zone Height: " + heightmapZone.worldAltitude);
this.throwbackInfo(playerCharacter, "Sea Level: " + heightmapZone.getSeaLevel());
this.throwbackInfo(playerCharacter, "Grid : " + (int) gridSquare.x + "x" + (int) gridSquare.y);
this.throwbackInfo(playerCharacter, "***Height returned: " + currentHeight);
this.throwbackInfo(playerCharacter, "*** 256: " + currentHeight);
this.throwbackInfo(playerCharacter, "***Adjusted Height: " + (currentHeight + playerCharacter.getCharacterHeight()));
HeightMap.SCALEVALUE = 1f / 255f;
currentHeight = HeightMap.getWorldHeight(currentZone, playerCharacter.getLoc());
HeightMap.SCALEVALUE = 1f / 256f;
this.throwbackInfo(playerCharacter, "***255 Adjusted: " + (currentHeight + playerCharacter.getCharacterHeight()));
this.throwbackInfo(playerCharacter, "Drowning Height: " + (heightmapZone.getSeaLevel() + playerCharacter.getCharacterHeight()));
this.throwbackInfo(playerCharacter, "------------");

Loading…
Cancel
Save