Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/maps/random/persian_highlands.js
Show First 20 Lines • Show All 237 Lines • ▼ Show 20 Lines | |||||
{ | { | ||||
createMountain( | createMountain( | ||||
floor(scaleByMapSize(40, 60)), | floor(scaleByMapSize(40, 60)), | ||||
floor(scaleByMapSize(3, 4)), | floor(scaleByMapSize(3, 4)), | ||||
floor(scaleByMapSize(6, 12)), | floor(scaleByMapSize(6, 12)), | ||||
floor(scaleByMapSize(4, 10)), | floor(scaleByMapSize(4, 10)), | ||||
avoidClasses(clPlayer, 7, clCP, 5, clHill, floor(scaleByMapSize(18, 25))), | avoidClasses(clPlayer, 7, clCP, 5, clHill, floor(scaleByMapSize(18, 25))), | ||||
randInt(mapSize), | randIntExclusive(0, mapSize), | ||||
randInt(mapSize), | randIntExclusive(0, mapSize), | ||||
tCliff, | tCliff, | ||||
clHill, | clHill, | ||||
14 | 14 | ||||
); | ); | ||||
} | } | ||||
RMS.SetProgress(35); | RMS.SetProgress(35); | ||||
▲ Show 20 Lines • Show All 134 Lines • ▼ Show 20 Lines | |||||
// create grape bush | // create grape bush | ||||
log("Creating grape bush..."); | log("Creating grape bush..."); | ||||
group = new SimpleGroup( | group = new SimpleGroup( | ||||
[new SimpleObject(oGrapesBush, 5,7, 0,4)], | [new SimpleObject(oGrapesBush, 5,7, 0,4)], | ||||
true, clFood | true, clFood | ||||
); | ); | ||||
createObjectGroups(group, 0, | createObjectGroups(group, 0, | ||||
avoidClasses(clForest, 0, clPlayer, 20, clHill, 1, clFood, 10, clCP, 2), | avoidClasses(clForest, 0, clPlayer, 20, clHill, 1, clFood, 10, clCP, 2), | ||||
randInt(1, 4) * numPlayers + 2, 50 | randIntInclusive(1, 4) * numPlayers + 2, 50 | ||||
); | ); | ||||
// create camels | // create camels | ||||
log("Creating camels..."); | log("Creating camels..."); | ||||
group = new SimpleGroup( | group = new SimpleGroup( | ||||
[new SimpleObject(oCamel, 2,3, 0,2)], | [new SimpleObject(oCamel, 2,3, 0,2)], | ||||
true, clFood | true, clFood | ||||
); | ); | ||||
Show All 38 Lines |
Wildfire Games · Phabricator