Drain Soviet resources so the ore truck doesn't stay at the refinery

This commit is contained in:
ScottNZ
2012-07-01 20:30:25 +12:00
parent facf958bae
commit b74e63f42d
2 changed files with 9 additions and 0 deletions

View File

@@ -8,6 +8,7 @@
*/
#endregion
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
@@ -166,6 +167,14 @@ namespace OpenRA.Mods.RA.Missions
{
MissionFailed(self, "Tanya was killed.");
}
ManageSovietOre();
}
void ManageSovietOre()
{
var res = soviets.PlayerActor.Trait<PlayerResources>();
res.TakeOre(res.Ore);
res.TakeCash(res.Cash);
}
void SpawnSignalFlare(Actor self)

Binary file not shown.