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:
@@ -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>();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user