Make the Soviets repair their buildings in Allies 04
This commit is contained in:
@@ -180,8 +180,10 @@ namespace OpenRA.Mods.RA.Missions
|
||||
void ManageSovietOre()
|
||||
{
|
||||
var res = soviets.PlayerActor.Trait<PlayerResources>();
|
||||
res.TakeOre(res.Ore);
|
||||
res.TakeCash(res.Cash);
|
||||
if (res.Ore > res.OreCapacity * 0.8)
|
||||
{
|
||||
res.TakeOre(res.OreCapacity / 10);
|
||||
}
|
||||
}
|
||||
|
||||
void SpawnSignalFlare()
|
||||
|
||||
Reference in New Issue
Block a user