cnc: Fix "Silos Needed" alert
This commit is contained in:
@@ -266,6 +266,7 @@
|
|||||||
<Compile Include="WorldUtils.cs" />
|
<Compile Include="WorldUtils.cs" />
|
||||||
<Compile Include="Traits\Wall.cs" />
|
<Compile Include="Traits\Wall.cs" />
|
||||||
<Compile Include="Traits\Render\RenderBuildingWall.cs" />
|
<Compile Include="Traits\Render\RenderBuildingWall.cs" />
|
||||||
|
<Compile Include="Traits\Player\EvaAlerts.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\OpenRa.FileFormats\OpenRa.FileFormats.csproj">
|
<ProjectReference Include="..\OpenRa.FileFormats\OpenRa.FileFormats.csproj">
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ namespace OpenRa
|
|||||||
|
|
||||||
if (PowerProvided - PowerDrained < 0)
|
if (PowerProvided - PowerDrained < 0)
|
||||||
if (PowerProvided - PowerDrained != oldBalance)
|
if (PowerProvided - PowerDrained != oldBalance)
|
||||||
GiveAdvice("lopower1.aud");
|
GiveAdvice(PlayerActor.Info.Traits.Get<EvaAlertsInfo>().LowPower);
|
||||||
}
|
}
|
||||||
|
|
||||||
public float GetSiloFullness()
|
public float GetSiloFullness()
|
||||||
@@ -146,7 +146,7 @@ namespace OpenRa
|
|||||||
Ore = OreCapacity; // trim off the overflow.
|
Ore = OreCapacity; // trim off the overflow.
|
||||||
|
|
||||||
if (Ore > .8 * OreCapacity)
|
if (Ore > .8 * OreCapacity)
|
||||||
GiveAdvice("silond1.aud"); // silos needed
|
GiveAdvice(PlayerActor.Info.Traits.Get<EvaAlertsInfo>().SilosNeeded); // silos needed
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool TakeCash( int num )
|
public bool TakeCash( int num )
|
||||||
|
|||||||
@@ -8,6 +8,9 @@ Player:
|
|||||||
OnHoldAudio: onhold1.aud
|
OnHoldAudio: onhold1.aud
|
||||||
CancelledAudio: cancel1.aud
|
CancelledAudio: cancel1.aud
|
||||||
ClickAudio: button.aud
|
ClickAudio: button.aud
|
||||||
|
EvaAlerts:
|
||||||
|
LowPower: lopower1.aud
|
||||||
|
SilosNeeded: silos1.aud
|
||||||
PlaceBuilding:
|
PlaceBuilding:
|
||||||
SpawnDefaultUnits:
|
SpawnDefaultUnits:
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
Player:
|
Player:
|
||||||
ProductionQueue:
|
ProductionQueue:
|
||||||
|
EvaAlerts:
|
||||||
PlaceBuilding:
|
PlaceBuilding:
|
||||||
GpsPower:
|
GpsPower:
|
||||||
Image: gpssicon
|
Image: gpssicon
|
||||||
|
|||||||
Reference in New Issue
Block a user