Change DeployToUpgrade order to GrantConditionOnDeploy.
This commit is contained in:
@@ -119,13 +119,13 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
|
|
||||||
public IEnumerable<IOrderTargeter> Orders
|
public IEnumerable<IOrderTargeter> Orders
|
||||||
{
|
{
|
||||||
get { yield return new DeployOrderTargeter("DeployToUpgrade", 5,
|
get { yield return new DeployOrderTargeter("GrantConditionOnDeploy", 5,
|
||||||
() => IsCursorBlocked() ? info.DeployBlockedCursor : info.DeployCursor); }
|
() => IsCursorBlocked() ? info.DeployBlockedCursor : info.DeployCursor); }
|
||||||
}
|
}
|
||||||
|
|
||||||
public Order IssueOrder(Actor self, IOrderTargeter order, Target target, bool queued)
|
public Order IssueOrder(Actor self, IOrderTargeter order, Target target, bool queued)
|
||||||
{
|
{
|
||||||
if (order.OrderID == "DeployToUpgrade")
|
if (order.OrderID == "GrantConditionOnDeploy")
|
||||||
return new Order(order.OrderID, self, queued);
|
return new Order(order.OrderID, self, queued);
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
@@ -133,7 +133,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
|
|
||||||
public void ResolveOrder(Actor self, Order order)
|
public void ResolveOrder(Actor self, Order order)
|
||||||
{
|
{
|
||||||
if (order.OrderString != "DeployToUpgrade" || deployState == DeployState.Deploying || deployState == DeployState.Undeploying)
|
if (order.OrderString != "GrantConditionOnDeploy" || deployState == DeployState.Deploying || deployState == DeployState.Undeploying)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!order.Queued)
|
if (!order.Queued)
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ namespace OpenRA.Mods.Common.Widgets
|
|||||||
PerformKeyboardOrderOnSelection(a => new Order("DeployTransform", a, false));
|
PerformKeyboardOrderOnSelection(a => new Order("DeployTransform", a, false));
|
||||||
PerformKeyboardOrderOnSelection(a => new Order("Unload", a, false));
|
PerformKeyboardOrderOnSelection(a => new Order("Unload", a, false));
|
||||||
PerformKeyboardOrderOnSelection(a => new Order("Detonate", a, false));
|
PerformKeyboardOrderOnSelection(a => new Order("Detonate", a, false));
|
||||||
PerformKeyboardOrderOnSelection(a => new Order("DeployToUpgrade", a, false));
|
PerformKeyboardOrderOnSelection(a => new Order("GrantConditionOnDeploy", a, false));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user