Merge pull request #2736 from Mailaender/better-bots

Better AI Bots
This commit is contained in:
Chris Forbes
2013-03-09 21:11:29 -08:00
19 changed files with 1972 additions and 177 deletions

View File

@@ -82,6 +82,7 @@ namespace OpenRA.Traits
public int DisplayCash;
public int DisplayOre;
public bool AlertSilo;
public int Earned;
public int Spent;
@@ -155,8 +156,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;
}