Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/maps/random/african_plains.js
Show All 33 Lines | |||||
var oHawk = "birds/buzzard"; | var oHawk = "birds/buzzard"; | ||||
var oGiraffe = "gaia/fauna_giraffe"; | var oGiraffe = "gaia/fauna_giraffe"; | ||||
var oGiraffe2 = "gaia/fauna_giraffe_infant"; | var oGiraffe2 = "gaia/fauna_giraffe_infant"; | ||||
var oGazelle = "gaia/fauna_gazelle"; | var oGazelle = "gaia/fauna_gazelle"; | ||||
var oElephant = "gaia/fauna_elephant_african_bush"; | var oElephant = "gaia/fauna_elephant_african_bush"; | ||||
var oElephant2 = "gaia/fauna_elephant_african_infant"; | var oElephant2 = "gaia/fauna_elephant_african_infant"; | ||||
var oCrocodile = "gaia/fauna_crocodile_nile"; | var oCrocodile = "gaia/fauna_crocodile_nile"; | ||||
var oFish = g_Gaia.fish; | var oFish = g_Gaia.fish; | ||||
var oStoneLarge = g_Gaia.stoneLarge; | |||||
var oStoneSmall = g_Gaia.stoneSmall; | var oStoneSmall = g_Gaia.stoneSmall; | ||||
var oMetalLarge = g_Gaia.metalLarge; | var oMetalLarge = g_Gaia.metalLarge; | ||||
var oMetalSmall = g_Gaia.metalSmall; | |||||
var aBush = g_Decoratives.bushMedium; | var aBush = g_Decoratives.bushMedium; | ||||
var aRock = g_Decoratives.rockMedium; | var aRock = g_Decoratives.rockMedium; | ||||
const pForest = [tForestFloor + TERRAIN_SEPARATOR + oPalm, tForestFloor + TERRAIN_SEPARATOR + oPalm2, tForestFloor]; | const pForest = [tForestFloor + TERRAIN_SEPARATOR + oPalm, tForestFloor + TERRAIN_SEPARATOR + oPalm2, tForestFloor]; | ||||
var heightSeaGround = -5; | var heightSeaGround = -5; | ||||
var heightLand = 2; | var heightLand = 2; | ||||
▲ Show 20 Lines • Show All 110 Lines • ▼ Show 20 Lines | createPatches( | ||||
[scaleByMapSize(2, 4), scaleByMapSize(3, 7), scaleByMapSize(5, 15)], | [scaleByMapSize(2, 4), scaleByMapSize(3, 7), scaleByMapSize(5, 15)], | ||||
tSecondary, | tSecondary, | ||||
avoidClasses(clWater, 3, clForest, 0, clHill, 0, clDirt, 5, clPlayer, 12), | avoidClasses(clWater, 3, 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"); | g_Map.log("Creating stone mines"); | ||||
createMines( | createBalancedStoneMines( | ||||
[ | oStoneSmall, | ||||
[new SimpleObject(oStoneSmall, 0, 2, 0, 4)], | oStoneLarge, | ||||
[new SimpleObject(oStoneSmall, 2, 5, 1, 3)] | clRock, | ||||
], | avoidClasses(clWater, 4, clForest, 1, clPlayer, scaleByMapSize(20, 35), clHill, 1) | ||||
avoidClasses(clWater, 4, clForest, 4, clPlayer, 20, clRock, 10, clHill, 4), | ); | ||||
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, 4, clForest, 4, clPlayer, 20, clMetal, 18, clRock, 5, clHill, 4), | avoidClasses(clWater, 4, clForest, 1, clPlayer, scaleByMapSize(20, 35), clHill, 1, clRock, 10) | ||||
clMetal | |||||
); | ); | ||||
Engine.SetProgress(70); | Engine.SetProgress(70); | ||||
createDecoration( | createDecoration( | ||||
[ | [ | ||||
[new SimpleObject(aBush, 1,3, 0,1)], | [new SimpleObject(aBush, 1,3, 0,1)], | ||||
[new SimpleObject(aRock, 1,2, 0,1)] | [new SimpleObject(aRock, 1,2, 0,1)] | ||||
], | ], | ||||
[ | [ | ||||
▲ Show 20 Lines • Show All 113 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator