Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/maps/random/gulf_of_bothnia.js
Show First 20 Lines • Show All 344 Lines • ▼ Show 20 Lines | else | ||||
paintTerrainBasedOnHeight(1, 3, 0, tShore); | paintTerrainBasedOnHeight(1, 3, 0, tShore); | ||||
paintTerrainBasedOnHeight(-8, 1, 2, tWater); | paintTerrainBasedOnHeight(-8, 1, 2, tWater); | ||||
} | } | ||||
// create bumps | // create bumps | ||||
createBumps(avoidClasses(clWater, 2, clPlayer, 10)); | createBumps(avoidClasses(clWater, 2, clPlayer, 10)); | ||||
// create hills | // create hills | ||||
if (randInt(1,2) == 1) | if (randBool()) | ||||
createHills([tPrimary, tCliff, tPrimary], avoidClasses(clPlayer, 20, clHill, 15, clWater, 0), clHill, scaleByMapSize(1, 4) * numPlayers); | createHills([tPrimary, tCliff, tPrimary], avoidClasses(clPlayer, 20, clHill, 15, clWater, 0), clHill, scaleByMapSize(1, 4) * numPlayers); | ||||
else | else | ||||
createMountains(tCliff, avoidClasses(clPlayer, 20, clHill, 15, clWater, 0), clHill, scaleByMapSize(1, 4) * numPlayers); | createMountains(tCliff, avoidClasses(clPlayer, 20, clHill, 15, clWater, 0), clHill, scaleByMapSize(1, 4) * numPlayers); | ||||
// create forests | // create forests | ||||
createForests( | createForests( | ||||
[tPrimary, tForestFloor, tForestFloor, pForest, pForest], | [tPrimary, tForestFloor, tForestFloor, pForest, pForest], | ||||
avoidClasses(clPlayer, 20, clForest, 16, clHill, 0, clWater, 2), | avoidClasses(clPlayer, 20, clForest, 16, clHill, 0, clWater, 2), | ||||
▲ Show 20 Lines • Show All 134 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator