Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/maps/random/corinthian_isthmus.js
Show First 20 Lines • Show All 243 Lines • ▼ Show 20 Lines | |||||
[tForestFloor, tForestFloor, tForestFloor, pForest, pForest], | [tForestFloor, tForestFloor, tForestFloor, pForest, pForest], | ||||
avoidClasses(clPlayer, 20, clForest, 17, clWater, 2, clBaseResource, 3), | avoidClasses(clPlayer, 20, clForest, 17, clWater, 2, clBaseResource, 3), | ||||
clForest | clForest | ||||
); | ); | ||||
RMS.SetProgress(50); | RMS.SetProgress(50); | ||||
// create hills | // create hills | ||||
if (randInt(1,2) == 1) | if (randBool(0.5)) | ||||
elexis: ✓ good | |||||
createHills([tGrass, tCliff, tHill], avoidClasses(clPlayer, 20, clForest, 1, clHill, 15, clWater, 3), clHill, scaleByMapSize(3, 15)); | createHills([tGrass, tCliff, tHill], avoidClasses(clPlayer, 20, clForest, 1, clHill, 15, clWater, 3), clHill, scaleByMapSize(3, 15)); | ||||
else | else | ||||
createMountains(tCliff, avoidClasses(clPlayer, 20, clForest, 1, clHill, 15, clWater, 3), clHill, scaleByMapSize(3, 15)); | createMountains(tCliff, avoidClasses(clPlayer, 20, clForest, 1, clHill, 15, clWater, 3), clHill, scaleByMapSize(3, 15)); | ||||
// create grass patches | // create grass patches | ||||
log("Creating grass patches..."); | log("Creating grass patches..."); | ||||
createLayeredPatches( | createLayeredPatches( | ||||
[scaleByMapSize(3, 6), scaleByMapSize(5, 10), scaleByMapSize(8, 21)], | [scaleByMapSize(3, 6), scaleByMapSize(5, 10), scaleByMapSize(8, 21)], | ||||
▲ Show 20 Lines • Show All 121 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
✓ good