Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/maps/random/mainland.js
Show All 21 Lines | |||||
const oTree4 = g_Gaia.tree4; | const oTree4 = g_Gaia.tree4; | ||||
const oTree5 = g_Gaia.tree5; | const oTree5 = g_Gaia.tree5; | ||||
const oFruitBush = g_Gaia.fruitBush; | const oFruitBush = g_Gaia.fruitBush; | ||||
const oMainHuntableAnimal = g_Gaia.mainHuntableAnimal; | const oMainHuntableAnimal = g_Gaia.mainHuntableAnimal; | ||||
const oSecondaryHuntableAnimal = g_Gaia.secondaryHuntableAnimal; | const oSecondaryHuntableAnimal = g_Gaia.secondaryHuntableAnimal; | ||||
const oStoneLarge = g_Gaia.stoneLarge; | const oStoneLarge = g_Gaia.stoneLarge; | ||||
const oStoneSmall = g_Gaia.stoneSmall; | const oStoneSmall = g_Gaia.stoneSmall; | ||||
const oMetalLarge = g_Gaia.metalLarge; | const oMetalLarge = g_Gaia.metalLarge; | ||||
const oMetalSmall = g_Gaia.metalSmall; | |||||
const aGrass = g_Decoratives.grass; | const aGrass = g_Decoratives.grass; | ||||
const aGrassShort = g_Decoratives.grassShort; | const aGrassShort = g_Decoratives.grassShort; | ||||
const aRockLarge = g_Decoratives.rockLarge; | const aRockLarge = g_Decoratives.rockLarge; | ||||
const aRockMedium = g_Decoratives.rockMedium; | const aRockMedium = g_Decoratives.rockMedium; | ||||
const aBushMedium = g_Decoratives.bushMedium; | const aBushMedium = g_Decoratives.bushMedium; | ||||
const aBushSmall = g_Decoratives.bushSmall; | const aBushSmall = g_Decoratives.bushSmall; | ||||
▲ Show 20 Lines • Show All 73 Lines • ▼ Show 20 Lines | |||||
createPatches( | createPatches( | ||||
[scaleByMapSize(2, 4), scaleByMapSize(3, 7), scaleByMapSize(5, 15)], | [scaleByMapSize(2, 4), scaleByMapSize(3, 7), scaleByMapSize(5, 15)], | ||||
tTier4Terrain, | tTier4Terrain, | ||||
avoidClasses(clForest, 0, clHill, 0, clDirt, 5, clPlayer, 12), | avoidClasses(clForest, 0, clHill, 0, clDirt, 5, clPlayer, 12), | ||||
scaleByMapSize(15, 45), | scaleByMapSize(15, 45), | ||||
clDirt); | clDirt); | ||||
Engine.SetProgress(55); | Engine.SetProgress(55); | ||||
g_Map.log("Creating stone mines"); | |||||
createMines( | |||||
[ | |||||
[new SimpleObject(oStoneSmall, 0, 2, 0, 4, 0, 2 * Math.PI, 1), new SimpleObject(oStoneLarge, 1, 1, 0, 4, 0, 2 * Math.PI, 4)], | |||||
[new SimpleObject(oStoneSmall, 2, 5, 1, 3, 0, 2 * Math.PI, 1)] | |||||
], | |||||
avoidClasses(clForest, 1, clPlayer, 20, clRock, 10, clHill, 1), | |||||
clRock); | |||||
g_Map.log("Creating metal mines"); | g_Map.log("Creating metal mines"); | ||||
createMines( | createBalancedMetalMines( | ||||
[ | oMetalSmall, | ||||
[new SimpleObject(oMetalLarge, 1,1, 0,4)] | oMetalLarge, | ||||
], | clMetal, | ||||
avoidClasses(clForest, 1, clPlayer, 20, clMetal, 10, clRock, 5, clHill, 1), | avoidClasses(clForest, 1, clPlayer, scaleByMapSize(20, 35), clHill, 1) | ||||
clMetal | ); | ||||
g_Map.log("Creating stone mines"); | |||||
createBalancedStoneMines( | |||||
oStoneSmall, | |||||
oStoneLarge, | |||||
clRock, | |||||
avoidClasses(clForest, 1, clPlayer, scaleByMapSize(20, 35), clHill, 1, clMetal, 10) | |||||
); | ); | ||||
Engine.SetProgress(65); | Engine.SetProgress(65); | ||||
var planetm = 1; | var planetm = 1; | ||||
if (currentBiome() == "generic/india") | if (currentBiome() == "generic/india") | ||||
planetm = 8; | planetm = 8; | ||||
▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator