Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/maps/random/island_stronghold.js
Show First 20 Lines • Show All 522 Lines • ▼ Show 20 Lines | |||||
createObjectGroupsDeprecated(group, 0, | createObjectGroupsDeprecated(group, 0, | ||||
[avoidClasses(clLand, 4),avoidClasses(clFood, 8)], | [avoidClasses(clLand, 4),avoidClasses(clFood, 8)], | ||||
scaleByMapSize(10, 20), 100 | scaleByMapSize(10, 20), 100 | ||||
); | ); | ||||
placeDefaultDecoratives(fx, fz, aGrassShort, clBaseResource, radius, [stayClasses(clLand, 5)]); | placeDefaultDecoratives(fx, fz, aGrassShort, clBaseResource, radius, [stayClasses(clLand, 5)]); | ||||
log("Creating small grass tufts..."); | log("Creating small grass tufts..."); | ||||
let planetm = currentBiome() == 7 ? 8 : 1; | let planetm = currentBiome() == g_BiomeTropic ? 8 : 1; | ||||
group = new SimpleGroup( | group = new SimpleGroup( | ||||
[new SimpleObject(aGrassShort, 1, 2, 0, 1, -PI / 8, PI / 8)] | [new SimpleObject(aGrassShort, 1, 2, 0, 1, -PI / 8, PI / 8)] | ||||
); | ); | ||||
createObjectGroupsDeprecated(group, 0, | createObjectGroupsDeprecated(group, 0, | ||||
[avoidClasses(clHill, 2, clPlayer, 2, clDirt, 0), stayClasses(clLand, 3)], | [avoidClasses(clHill, 2, clPlayer, 2, clDirt, 0), stayClasses(clLand, 3)], | ||||
planetm * scaleByMapSize(13, 200) | planetm * scaleByMapSize(13, 200) | ||||
); | ); | ||||
Show All 22 Lines |
Wildfire Games · Phabricator