Quote from: AngleWyrm on June 16, 2017, 09:54:05 PM
This post explains how to make an xpath statement that isn't going to generate duplicate field errors. Quick recap:
<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationTest">
<xpath>*/ThingDef[defName = "ChosenThingy"]/elementThatIWannaAdd</xpath>
<success>Invert</success>
</li>
<li Class="PatchOperationAdd">
<xpath>*/ThingDef[defName = "ChosenThingy"]</xpath>
<value>
<elementThatIWannaAdd> someValue </elementThatIWannaAdd>
</value>
</li>
</operations>
</Operation>
So if i use this to test than I won't need the submod?