Fix #429. Capturable Oil Derricks.

This commit is contained in:
Paul Chote
2011-01-04 11:43:46 +13:00
parent cbd3baa6d4
commit 03185fe46b
2 changed files with 6 additions and 2 deletions

View File

@@ -49,7 +49,6 @@ namespace OpenRA.Mods.RA
self.CancelActivity();
self.QueueActivity(new Enter(order.TargetActor));
//self.QueueActivity(new Move(order.TargetActor.Location, order.TargetActor));
self.QueueActivity(new RepairBuilding(order.TargetActor));
}
}
@@ -64,7 +63,9 @@ namespace OpenRA.Mods.RA
public override bool CanTargetActor(Actor self, Actor target, bool forceAttack, bool forceMove, bool forceQueued, ref string cursor)
{
if( !base.CanTargetActor( self, target, forceAttack, forceMove, forceQueued, ref cursor ) ) return false;
if (!target.HasTrait<RepairableBuilding>())
return false;
IsQueued = forceQueued;
if( target.GetDamageState() == DamageState.Undamaged )

View File

@@ -2,9 +2,12 @@
V19:
Inherits: ^CivBuilding
RenderBuilding:
CashTrickler:
Building:
Footprint: x
Dimensions: 1,1
Capturable: true
Unsellable: true
-DeadBuildingState:
Tooltip:
Name: Oil Derrick