Disable the Ptolemaic lighthouse on some maps with a lot of little water spots.

Refs #3174.

This was SVN commit r16629.
This commit is contained in:
Nicolas Auvray 2015-05-06 18:48:13 +00:00
parent 642500b49e
commit 2b7ba4ff0b
4 changed files with 15 additions and 4 deletions

View File

@ -7,6 +7,9 @@
"BaseTerrain" : ["temp_grass", "temp_grass_b", "temp_grass_c", "temp_grass_d", "temp_grass_long_b", "temp_grass_clovers_2", "temp_grass_mossy", "temp_grass_plants"],
"BaseHeight" : 0,
"Preview" : "belgian_uplands.png",
"TriggerScripts": [
"scripts/disable_ptol_lighthouse.js"
],
"XXXXXX" : "Optionally define other things here, like we would for a scenario"
}
}

Binary file not shown.

View File

@ -0,0 +1,8 @@
let cmpPlayerManager = Engine.QueryInterface(SYSTEM_ENTITY, IID_PlayerManager);
for (let i = 1; i < cmpPlayerManager.GetNumPlayers(); ++i)
{
let cmpPlayer = Engine.QueryInterface(cmpPlayerManager.GetPlayerByID(i), IID_Player);
if (cmpPlayer)
cmpPlayer.AddDisabledTemplate("structures/ptol_lighthouse");
}

Binary file not shown.