Simplify cloak crate behavior.

This removes the runtime trait addition which
prevented Cloak from being cached.

The CloakCrateAction in D2K was never used, so
has also been removed.
This commit is contained in:
Paul Chote
2013-08-18 14:50:49 +12:00
parent e5e9ff95d0
commit 1e53434e45
8 changed files with 39 additions and 59 deletions

View File

@@ -30,12 +30,6 @@ namespace OpenRA.Mods.RA
public TargetableUnit(Actor self, TargetableUnitInfo info)
{
this.info = info;
ReceivedCloak(self);
}
// Arbitrary units can receive cloak via a crate during gameplay
public void ReceivedCloak(Actor self)
{
cloak = self.TraitOrDefault<Cloak>();
}