Add dedicated TDGunboat traits
And get rid of Mobile.OnRails hack.
This commit is contained in:
committed by
Oliver Brakmann
parent
3bdd35fd2d
commit
94fa24088b
@@ -70,8 +70,6 @@ namespace OpenRA.Mods.Common.Traits
|
||||
|
||||
public readonly int Speed = 1;
|
||||
|
||||
public readonly bool OnRails = false;
|
||||
|
||||
[Desc("Allow multiple (infantry) units in one cell.")]
|
||||
public readonly bool SharesCell = false;
|
||||
|
||||
@@ -583,12 +581,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
public Order IssueOrder(Actor self, IOrderTargeter order, Target target, bool queued)
|
||||
{
|
||||
if (order is MoveOrderTargeter)
|
||||
{
|
||||
if (Info.OnRails)
|
||||
return null;
|
||||
|
||||
return new Order("Move", self, queued) { TargetLocation = self.World.Map.CellContaining(target.CenterPosition) };
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user