There is this def in vanilla:
I want to remove just <li>Designator_RemoveBridge</li> from the specialDesignatorClasses. I've tried implementing the operation as such:
But that removes the entire specialDesignatorClasses element, not just the specified <li>. How can I target just that li and leave its parent alone?
Code Select
<DesignationCategoryDef>
<defName>Structure</defName>
<label>structure</label>
<order>700</order>
<specialDesignatorClasses>
<li>Designator_Cancel</li>
<li>Designator_Deconstruct</li>
<li>Designator_RemoveBridge</li>
</specialDesignatorClasses>
</DesignationCategoryDef>
I want to remove just <li>Designator_RemoveBridge</li> from the specialDesignatorClasses. I've tried implementing the operation as such:
Code Select
<Operation Class="PatchOperationRemove">
<xpath>*/DesignationCategoryDef[defName="Structure"]/specialDesignatorClasses[li="Designator_RemoveBridge"]</xpath>
</Operation>
But that removes the entire specialDesignatorClasses element, not just the specified <li>. How can I target just that li and leave its parent alone?