hack UIM stuff for crates
This commit is contained in:
@@ -73,6 +73,9 @@ namespace OpenRA.Mods.RA.Effects
|
||||
{
|
||||
cargo.Location = loc;
|
||||
cargo.CenterLocation = Util.CenterOfCell(loc);
|
||||
|
||||
if (cargo.traits.Contains<IOccupySpace>())
|
||||
world.WorldActor.traits.Get<UnitInfluence>().Add(cargo, cargo.traits.Get<IOccupySpace>());
|
||||
}
|
||||
w.Add(cargo);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user