notes
This commit is contained in:
@@ -75,7 +75,6 @@ namespace OpenRA.Mods.RA
|
||||
|
||||
public void Tick(Actor self)
|
||||
{
|
||||
|
||||
if( ++ticks >= self.Info.Traits.Get<CrateInfo>().Lifetime * 25 )
|
||||
self.Destroy();
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user