adding new ai functional

This commit is contained in:
Matthias Mailänder
2013-03-06 11:17:02 +01:00
parent 3f56e00173
commit e0b7242f1b
15 changed files with 1722 additions and 177 deletions

View File

@@ -85,6 +85,7 @@ namespace OpenRA.Traits
public int DisplayCash;
public int DisplayOre;
public bool AlertSilo;
public int Earned;
public int Spent;
@@ -158,8 +159,13 @@ namespace OpenRA.Traits
if (--nextSiloAdviceTime <= 0)
{
if (Ore > 0.8*OreCapacity)
if (Ore > 0.8 * OreCapacity)
{
Sound.PlayNotification(Owner, "Speech", "SilosNeeded", Owner.Country.Race);
AlertSilo = true;
}
else
AlertSilo = false;
nextSiloAdviceTime = AdviceInterval;
}