1
0
forked from 0ad/0ad

Remove aggressive gaia soldiers on nomad random maps.

Differential Revision: https://code.wildfiregames.com/D1465
Reviewed By: (-_-) aka smiley
This was SVN commit r21772.
This commit is contained in:
elexis 2018-04-23 18:13:39 +00:00
parent e3bc85388f
commit 25099f2898
3 changed files with 6 additions and 4 deletions

View File

@ -414,7 +414,7 @@ g_Map.log("Placing resources, farmsteads, groves and camps");
for (let i = 0; i < resourceSpots.length; ++i)
{
let pos = new Vector2D(resourceSpots[i].x, resourceSpots[i].y);
let choice = i % 5;
let choice = i % (isNomad() ? 4 : 5);
if (choice == 0)
placeMine(pos, "gaia/geology_stonemine_temperate_formation");
if (choice == 1)

View File

@ -38,7 +38,9 @@ const oFarmstead = "structures/kush_farmstead";
const oField = "structures/kush_field";
const oPyramid = "structures/kush_pyramid_small";
const oPyramidLarge = "structures/kush_pyramid_large";
const oKushSoldiers = "units/kush_infantry_javelinist_merc_e";
const oKushUnits = isNomad() ?
"units/kush_support_female_citizen" :
"units/kush_infantry_javelinist_merc_e";
const aRain = g_Decoratives.rain;
const aBushA = g_Decoratives.bushA;
@ -228,7 +230,7 @@ for (let coordinate of kushiteTownPositions)
for (let building in kushVillageBuildings)
g_Map.placeEntityPassable(kushVillageBuildings[building].template, 0, Vector2D.add(coordinate, kushVillageBuildings[building].offset), Math.PI);
createObjectGroup(new SimpleGroup([new SimpleObject(oKushSoldiers, 5, 7, 1, 2)], true, clKushiteVillages, coordinate), 0);
createObjectGroup(new SimpleGroup([new SimpleObject(oKushUnits, 5, 7, 1, 2)], true, clKushiteVillages, coordinate), 0);
}
g_Map.log("Creating kushite pyramids");

View File

@ -607,7 +607,7 @@ g_Map.log("Placing at most " + mercenaryCamps + " mercenary camps");
for (let i = 0; i < resourceSpots.length; ++i)
{
let radius;
let choice = i % 5;
let choice = i % (isNomad() ? 4 : 5);
if (choice == 0)
placeMine(resourceSpots[i], g_Gaia.stoneLarge);
if (choice == 1)