Remove thief; transfer ore along with stolen silo/proc.

This commit is contained in:
Paul Chote
2010-06-14 20:58:40 +12:00
parent 283512f314
commit 24edba34a7
7 changed files with 28 additions and 116 deletions

View File

@@ -1,4 +1,4 @@
#region Copyright & License Information
#region Copyright & License Information
/*
* Copyright 2007,2009,2010 Chris Forbes, Robert Pepperell, Matthew Bowra-Dean, Paul Chote, Alli Witheford.
* This file is part of OpenRA.
@@ -49,6 +49,9 @@ namespace OpenRA.Mods.RA.Activities
w.Remove(target);
target.Owner = self.Owner;
w.Add(target);
foreach (var t in target.traits.WithInterface<INotifyCapture>())
t.OnCapture(target, self);
});
target.InflictDamage(self, target.Health - EngineerCapture.EngineerDamage, null);