Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/maps/random/migration.js
Show First 20 Lines • Show All 227 Lines • ▼ Show 20 Lines | for (let size of [scaleByMapSize(2, 32), scaleByMapSize(3, 48), scaleByMapSize(5, 80)]) | ||||
createAreas( | createAreas( | ||||
new ClumpPlacer(size, 0.3, 0.06, 0.5), | new ClumpPlacer(size, 0.3, 0.06, 0.5), | ||||
new TerrainPainter(tTier4Terrain), | new TerrainPainter(tTier4Terrain), | ||||
[avoidClasses(clForest, 0, clHill, 0, clDirt, 5, clIsland, 0), stayClasses(clLand, 7)], | [avoidClasses(clForest, 0, clHill, 0, clDirt, 5, clIsland, 0), stayClasses(clLand, 7)], | ||||
scaleByMapSize(15, 45)); | scaleByMapSize(15, 45)); | ||||
Engine.SetProgress(46); | Engine.SetProgress(46); | ||||
g_Map.log("Creating stone mines"); | g_Map.log("Creating stone mines"); | ||||
var group = new SimpleGroup([new SimpleObject(oStoneSmall, 0,2, 0,4), new SimpleObject(oStoneLarge, 1,1, 0,4)], true, clRock); | var group = new SimpleGroup([new SimpleObject(oStoneSmall, 0, 2, 0, 4, 0, 2 * Math.PI, 1), new SimpleObject(oStoneLarge, 1, 1, 0, 4, 0, 2 * Math.PI, 4)], true, clRock); | ||||
createObjectGroupsDeprecated(group, 0, | createObjectGroupsDeprecated(group, 0, | ||||
[avoidClasses(clForest, 1, clPlayer, 10, clRock, 10, clHill, 1), stayClasses(clLand, 7)], | [avoidClasses(clForest, 1, clPlayer, 10, clRock, 10, clHill, 1), stayClasses(clLand, 7)], | ||||
scaleByMapSize(4,16), 100 | scaleByMapSize(4,16), 100 | ||||
); | ); | ||||
Engine.SetProgress(50); | Engine.SetProgress(50); | ||||
g_Map.log("Creating small stone quarries"); | g_Map.log("Creating small stone quarries"); | ||||
group = new SimpleGroup([new SimpleObject(oStoneSmall, 2,5, 1,3)], true, clRock); | group = new SimpleGroup([new SimpleObject(oStoneSmall, 2,5, 1,3)], true, clRock); | ||||
▲ Show 20 Lines • Show All 128 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator