adding new ai functional
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user