Remove ExcludedActors from crate actions. Use a tag trait for cloakable actors. Ban MCV from receiving cloak.

This commit is contained in:
Paul Chote
2011-07-01 00:07:04 +12:00
parent f360559869
commit 11a9bc7e43
6 changed files with 9 additions and 13 deletions

View File

@@ -59,7 +59,7 @@ namespace OpenRA.Mods.RA
public void OnCrush(Actor crusher)
{
var shares = self.TraitsImplementing<CrateAction>().Select(
a => Pair.New(a, a.GetSelectionSharesOuter(crusher)));
a => Pair.New(a, a.GetSelectionShares(crusher)));
var totalShares = shares.Sum(a => a.Second);
var n = self.World.SharedRandom.Next(totalShares);