-
Notifications
You must be signed in to change notification settings - Fork 5
PatchOperation.Set
Meru edited this page Dec 2, 2022
·
2 revisions
Given a xpath, add or replace child elements. Useful to change a single element that contains multiple children without setting Context. It'll avoid adding duplicates or complain if any is missing.
Replace deconstructible
and claimable
in the building
of NonDeconstructibleAncientBuildingBase
:
<Operation Class="PatchOperation.Set">
<xpath>/Defs/ThingDef[@Name="NonDeconstructibleAncientBuildingBase"]/building</xpath>
<value>
<deconstructible>true</deconstructible>
<claimable>true</claimable>
</value>
</Operation>