Give Allies2 player some cash when they receive reinforcements
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user