Fix #429. Capturable Oil Derricks.
This commit is contained in:
@@ -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,6 +63,8 @@ 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;
|
||||
|
||||
|
||||
@@ -2,9 +2,12 @@
|
||||
V19:
|
||||
Inherits: ^CivBuilding
|
||||
RenderBuilding:
|
||||
CashTrickler:
|
||||
Building:
|
||||
Footprint: x
|
||||
Dimensions: 1,1
|
||||
Capturable: true
|
||||
Unsellable: true
|
||||
-DeadBuildingState:
|
||||
Tooltip:
|
||||
Name: Oil Derrick
|
||||
|
||||
Reference in New Issue
Block a user