Give Allies2 player some cash when they receive reinforcements

This commit is contained in:
Scott_NZ
2012-08-14 01:25:03 +12:00
parent 5038018aa5
commit 610e40b8d6

View File

@@ -238,6 +238,8 @@ namespace OpenRA.Mods.RA.Missions
void SendReinforcements() void SendReinforcements()
{ {
Sound.Play("reinfor1.aud"); Sound.Play("reinfor1.aud");
var resources = allies2.PlayerActor.Trait<PlayerResources>();
resources.GiveCash(2000);
foreach (var unit in reinforcements) foreach (var unit in reinforcements)
{ {
var actor = world.CreateActor(unit, new TypeDictionary var actor = world.CreateActor(unit, new TypeDictionary