Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/maps/random/guadalquivir_river.js
Show First 20 Lines • Show All 132 Lines • ▼ Show 20 Lines | "waterFunc": (position, height, z) => { | ||||
clRiver.add(position); | clRiver.add(position); | ||||
createTerrain(tWater).place(position); | createTerrain(tWater).place(position); | ||||
if (height < heightShallow && ( | if (height < heightShallow && ( | ||||
z > 0.3 && z < 0.4 || | z > 0.3 && z < 0.4 || | ||||
z > 0.5 && z < 0.6 || | z > 0.5 && z < 0.6 || | ||||
z > 0.7 && z < 0.8)) | z > 0.7 && z < 0.8)) | ||||
{ | { | ||||
g_Map.setHeight(position, heightShallow); | g_Map.setVertexHeight(position, heightShallow); | ||||
clShallow.add(position); | clShallow.add(position); | ||||
} | } | ||||
} | } | ||||
}); | }); | ||||
paintTerrainBasedOnHeight(1, 3, 0, tShore); | paintTerrainBasedOnHeight(1, 3, 0, tShore); | ||||
paintTerrainBasedOnHeight(-8, 1, 2, tWater); | paintTerrainBasedOnHeight(-8, 1, 2, tWater); | ||||
▲ Show 20 Lines • Show All 141 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator