Browse Source

Opposite of 1006300 created as 1006301.

magicbox-1.5.2
MagicBot 1 year ago
parent
commit
c1e1c730bb
  1. 4
      src/engine/objects/Zone.java
  2. 11
      src/engine/util/MapLoader.java

4
src/engine/objects/Zone.java

@ -107,9 +107,11 @@ public class Zone extends AbstractGameObject { @@ -107,9 +107,11 @@ public class Zone extends AbstractGameObject {
if (this.guild_zone) {
this.max_blend = 128;
this.min_blend = 128;
this.terrain_max_y = 5;
this.major_radius = (int) Enum.CityBoundsType.ZONE.halfExtents;
this.minor_radius = (int) Enum.CityBoundsType.ZONE.halfExtents;
this.terrain_type = "PLANAR";
this.terrain_type = "TARGA";
this.terrain_image = 1006301;
}
if (this.terrain_type.equals("NONE"))

11
src/engine/util/MapLoader.java

@ -18,6 +18,7 @@ import java.io.IOException; @@ -18,6 +18,7 @@ import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Arrays;
import java.util.stream.Stream;
public enum MapLoader {
@ -137,6 +138,16 @@ public enum MapLoader { @@ -137,6 +138,16 @@ public enum MapLoader {
}); // Try with resources block
// Generate full white alternate to 1600300
// Declare and initialize an array of short[16][16]
short[][] heightMapEntry = new short[16][16];
for (short[] shorts : heightMapEntry)
Arrays.fill(shorts, (short) 255);
Terrain._heightmap_pixel_cache.put(1006301, heightMapEntry);
} catch (IOException e) {
Logger.error(e);
}

Loading…
Cancel
Save