Remove building lock from ToggleConditionOnOrder.
This commit is contained in:
@@ -50,10 +50,6 @@ namespace OpenRA.Mods.Common.Orders
|
|||||||
if (underCursor == null)
|
if (underCursor == null)
|
||||||
yield break;
|
yield break;
|
||||||
|
|
||||||
var building = underCursor.TraitOrDefault<Building>();
|
|
||||||
if (building != null && building.Locked)
|
|
||||||
yield break;
|
|
||||||
|
|
||||||
yield return new Order(order, underCursor, false);
|
yield return new Order(order, underCursor, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules
|
|||||||
get
|
get
|
||||||
{
|
{
|
||||||
return "Traits are no longer force-disabled while the WithMakeAnimation trait is active.\n" +
|
return "Traits are no longer force-disabled while the WithMakeAnimation trait is active.\n" +
|
||||||
"This affects the With*Animation, With*Overlay, Transforms, Sellable, Gate, and ConyardChronoReturn traits.\n" +
|
"This affects the With*Animation, With*Overlay, Transforms, Sellable, Gate, ToggleConditionOnOrder, and ConyardChronoReturn traits.\n" +
|
||||||
"The AnnounceOnBuild trait has been replaced with a new VoiceAnnouncement trait.\n" +
|
"The AnnounceOnBuild trait has been replaced with a new VoiceAnnouncement trait.\n" +
|
||||||
"Affected actors are listed so that conditions may be manually defined.";
|
"Affected actors are listed so that conditions may be manually defined.";
|
||||||
}
|
}
|
||||||
@@ -56,6 +56,7 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules
|
|||||||
"Sellable",
|
"Sellable",
|
||||||
"Gate",
|
"Gate",
|
||||||
"ConyardChronoReturn",
|
"ConyardChronoReturn",
|
||||||
|
"ToggleConditionOnOrder",
|
||||||
"VoiceAnnouncement"
|
"VoiceAnnouncement"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user