Give the Soviets money as they need it.

This commit is contained in:
Scott_NZ
2012-08-14 01:11:48 +12:00
parent cce12e781f
commit 5038018aa5

View File

@@ -177,6 +177,11 @@ namespace OpenRA.Mods.RA.Missions
{
return;
}
var resources = soviets.PlayerActor.Trait<PlayerResources>();
if (resources.Cash < 2000)
{
resources.GiveCash(2000);
}
if (!sovietBarracks.Destroyed)
{
BuildUnitIfQueueIdle(soviets, InfantryQueueName, sovietInfantry[world.SharedRandom.Next(sovietInfantry.Length)]);
@@ -189,8 +194,6 @@ namespace OpenRA.Mods.RA.Missions
void InitializeSoviets()
{
var res = soviets.PlayerActor.Trait<PlayerResources>();
res.GiveCash(100000);
sovietBarracks.Trait<RallyPoint>().rallyPoint = allies2BasePoint.Location;
sovietWarFactory.Trait<RallyPoint>().rallyPoint = allies2BasePoint.Location;
sovietBarracks.Trait<PrimaryBuilding>().SetPrimaryProducer(sovietBarracks, true);