Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/maps/random/gulf_of_bothnia.js
Show All 20 Lines | |||||
const tShore = g_Terrains.shore; | const tShore = g_Terrains.shore; | ||||
const tWater = g_Terrains.water; | const tWater = g_Terrains.water; | ||||
const oPine = g_Gaia.tree1; | const oPine = g_Gaia.tree1; | ||||
const oBerryBush = g_Gaia.fruitBush; | const oBerryBush = g_Gaia.fruitBush; | ||||
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 oDeer = g_Gaia.mainHuntableAnimal; | const oDeer = g_Gaia.mainHuntableAnimal; | ||||
const oRabbit = g_Gaia.secondaryHuntableAnimal; | const oRabbit = g_Gaia.secondaryHuntableAnimal; | ||||
const oFish = g_Gaia.fish; | const oFish = g_Gaia.fish; | ||||
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; | ||||
▲ Show 20 Lines • Show All 132 Lines • ▼ Show 20 Lines | |||||
createPatches( | createPatches( | ||||
[scaleByMapSize(2, 4), scaleByMapSize(3, 7), scaleByMapSize(5, 15)], | [scaleByMapSize(2, 4), scaleByMapSize(3, 7), scaleByMapSize(5, 15)], | ||||
tHalfSnow, | tHalfSnow, | ||||
avoidClasses(clWater, 6, clForest, 0, clHill, 0, clDirt, 5, clPlayer, 12), | avoidClasses(clWater, 6, clForest, 0, clHill, 0, clDirt, 5, clPlayer, 12), | ||||
scaleByMapSize(15, 45), | scaleByMapSize(15, 45), | ||||
clDirt); | clDirt); | ||||
Engine.SetProgress(65); | Engine.SetProgress(65); | ||||
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)] | |||||
], | |||||
avoidClasses(clWater, 3, 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(clWater, 3, clForest, 1, clPlayer, 20, clMetal, 10, clRock, 5, clHill, 1), | avoidClasses(clWater, 2, clForest, 0, clPlayer, scaleByMapSize(15, 25), clHill, 1), | ||||
clMetal | 0.9 | ||||
); | |||||
g_Map.log("Creating stone mines"); | |||||
createBalancedStoneMines( | |||||
oStoneSmall, | |||||
oStoneLarge, | |||||
clRock, | |||||
avoidClasses(clWater, 2, clForest, 0, clPlayer, scaleByMapSize(15, 25), clHill, 1, clMetal, 10), | |||||
0.9 | |||||
); | ); | ||||
Engine.SetProgress(70); | Engine.SetProgress(70); | ||||
createDecoration( | createDecoration( | ||||
[ | [ | ||||
[new SimpleObject(aRockMedium, 1, 3, 0, 1)], | [new SimpleObject(aRockMedium, 1, 3, 0, 1)], | ||||
[new SimpleObject(aRockLarge, 1, 2, 0, 1), new SimpleObject(aRockMedium, 1, 3, 0, 2)], | [new SimpleObject(aRockLarge, 1, 2, 0, 1), new SimpleObject(aRockMedium, 1, 3, 0, 2)], | ||||
[new SimpleObject(aGrassShort, 1, 2, 0, 1)], | [new SimpleObject(aGrassShort, 1, 2, 0, 1)], | ||||
▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator