Fix #429. Capturable Oil Derricks.
This commit is contained in:
@@ -49,7 +49,6 @@ namespace OpenRA.Mods.RA
|
|||||||
|
|
||||||
self.CancelActivity();
|
self.CancelActivity();
|
||||||
self.QueueActivity(new Enter(order.TargetActor));
|
self.QueueActivity(new Enter(order.TargetActor));
|
||||||
//self.QueueActivity(new Move(order.TargetActor.Location, order.TargetActor));
|
|
||||||
self.QueueActivity(new RepairBuilding(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)
|
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( !base.CanTargetActor( self, target, forceAttack, forceMove, forceQueued, ref cursor ) ) return false;
|
||||||
|
if (!target.HasTrait<RepairableBuilding>())
|
||||||
|
return false;
|
||||||
|
|
||||||
IsQueued = forceQueued;
|
IsQueued = forceQueued;
|
||||||
|
|
||||||
|
|||||||
@@ -2,9 +2,12 @@
|
|||||||
V19:
|
V19:
|
||||||
Inherits: ^CivBuilding
|
Inherits: ^CivBuilding
|
||||||
RenderBuilding:
|
RenderBuilding:
|
||||||
|
CashTrickler:
|
||||||
Building:
|
Building:
|
||||||
Footprint: x
|
Footprint: x
|
||||||
Dimensions: 1,1
|
Dimensions: 1,1
|
||||||
|
Capturable: true
|
||||||
|
Unsellable: true
|
||||||
-DeadBuildingState:
|
-DeadBuildingState:
|
||||||
Tooltip:
|
Tooltip:
|
||||||
Name: Oil Derrick
|
Name: Oil Derrick
|
||||||
|
|||||||
Reference in New Issue
Block a user