Harvester now autoharvest when produced
This commit is contained in:
@@ -103,6 +103,10 @@ namespace OpenRA.Mods.RA
|
||||
|
||||
foreach (var notify in notifyOthers)
|
||||
notify.Trait.UnitProducedByOther(notify.Actor, self, newUnit);
|
||||
|
||||
var bi = newUnit.Info.Traits.GetOrDefault<BuildableInfo>();
|
||||
if (bi != null && bi.InitialActivity != null)
|
||||
newUnit.QueueActivity(Game.CreateObject<Activity>(bi.InitialActivity));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user