feat: apply EatableComp to anything with surfaceType Eat
This commit is contained in:
parent
180891f7aa
commit
6db5b51ade
1 changed files with 12 additions and 9 deletions
|
@ -14,21 +14,24 @@ You should have received a copy of the GNU General Public License along with "Ta
|
|||
<Operation Class="PatchOperationSequence">
|
||||
<operations>
|
||||
<li Class="PatchOperationConditional">
|
||||
<xpath>Defs/ThingDef[@Name="TableBase"]/comps</xpath>
|
||||
<xpath>Defs/ThingDef[surfaceType="Eat"]/comps</xpath>
|
||||
<nomatch Class="PatchOperationAdd">
|
||||
<xpath>Defs/ThingDef[@Name="TableBase"]</xpath>
|
||||
<xpath>Defs/ThingDef[surfaceType="Eat"]</xpath>
|
||||
<value>
|
||||
<comps />
|
||||
</value>
|
||||
</nomatch>
|
||||
</li>
|
||||
<li Class="PatchOperationAdd">
|
||||
<xpath>Defs/ThingDef[@Name="TableBase"]/comps</xpath>
|
||||
<li Class="PatchOperationConditional">
|
||||
<xpath>Defs/ThingDef[surfaceType="Eat"]/comps/li[compClass="TableToggle.EatableComp"]</xpath>
|
||||
<nomatch Class="PatchOperationAdd">
|
||||
<xpath>Defs/ThingDef[surfaceType="Eat"]/comps</xpath>
|
||||
<value>
|
||||
<li>
|
||||
<compClass>TableToggle.EatableComp</compClass>
|
||||
</li>
|
||||
</value>
|
||||
</nomatch>
|
||||
</li>
|
||||
</operations>
|
||||
</Operation>
|
Loading…
Add table
Add a link
Reference in a new issue