This commit is contained in:
Chris Forbes
2010-09-05 16:18:10 +12:00
parent e371159826
commit f8d537c0c5
2 changed files with 3 additions and 1 deletions

View File

@@ -75,7 +75,6 @@ namespace OpenRA.Mods.RA
public void Tick(Actor self)
{
if( ++ticks >= self.Info.Traits.Get<CrateInfo>().Lifetime * 25 )
self.Destroy();
}

View File

@@ -26,6 +26,9 @@ namespace OpenRA.Mods.RA.Crates
public override void Activate(Actor collector)
{
// shit and broken. if you have a single-use and a multi-use version of the same
// support power, this only works by order-coincidence. that's stupid.
var p = collector.Owner.PlayerActor.TraitsImplementing<SupportPower>()
.FirstOrDefault(sp => sp.GetType().Name == (info as SupportPowerCrateActionInfo).Power);