Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/maps/random/migration.js
Show First 20 Lines • Show All 414 Lines • ▼ Show 20 Lines | |||||
log("Creating fruit bush..."); | log("Creating fruit bush..."); | ||||
group = new SimpleGroup( | group = new SimpleGroup( | ||||
[new SimpleObject(oFruitBush, 5,7, 0,4)], | [new SimpleObject(oFruitBush, 5,7, 0,4)], | ||||
true, clFood | true, clFood | ||||
); | ); | ||||
createObjectGroups(group, 0, | createObjectGroups(group, 0, | ||||
[avoidClasses(clForest, 0, clPlayer, 8, clHill, 1, clFood, 20), stayClasses(clLand, 7)], | [avoidClasses(clForest, 0, clPlayer, 8, clHill, 1, clFood, 20), stayClasses(clLand, 7)], | ||||
randInt(1, 4) * numPlayers + 2, 50 | randIntInclusive(1, 4) * numPlayers + 2, 50 | ||||
); | ); | ||||
RMS.SetProgress(78); | RMS.SetProgress(78); | ||||
log("Creating fish..."); | log("Creating fish..."); | ||||
createObjectGroups( | createObjectGroups( | ||||
new SimpleGroup([new SimpleObject(oFish, 2,3, 0,2)], true, clFood), | new SimpleGroup([new SimpleObject(oFish, 2,3, 0,2)], true, clFood), | ||||
0, | 0, | ||||
avoidClasses(clLand, 2, clPlayer, 2, clHill, 0, clFood, 20), | avoidClasses(clLand, 2, clPlayer, 2, clHill, 0, clFood, 20), | ||||
▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator