feat: apply EatableComp to anything with surfaceType Eat

This commit is contained in:
Maciej Pawłowski 2025-04-19 20:49:57 +02:00
parent 180891f7aa
commit 6db5b51ade
Signed by: maciek
GPG key ID: 9FC186633565C9C7

View file

@ -14,21 +14,24 @@ You should have received a copy of the GNU General Public License along with "Ta
<Operation Class="PatchOperationSequence"> <Operation Class="PatchOperationSequence">
<operations> <operations>
<li Class="PatchOperationConditional"> <li Class="PatchOperationConditional">
<xpath>Defs/ThingDef[@Name="TableBase"]/comps</xpath> <xpath>Defs/ThingDef[surfaceType="Eat"]/comps</xpath>
<nomatch Class="PatchOperationAdd"> <nomatch Class="PatchOperationAdd">
<xpath>Defs/ThingDef[@Name="TableBase"]</xpath> <xpath>Defs/ThingDef[surfaceType="Eat"]</xpath>
<value> <value>
<comps /> <comps />
</value> </value>
</nomatch> </nomatch>
</li> </li>
<li Class="PatchOperationAdd"> <li Class="PatchOperationConditional">
<xpath>Defs/ThingDef[@Name="TableBase"]/comps</xpath> <xpath>Defs/ThingDef[surfaceType="Eat"]/comps/li[compClass="TableToggle.EatableComp"]</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/ThingDef[surfaceType="Eat"]/comps</xpath>
<value> <value>
<li> <li>
<compClass>TableToggle.EatableComp</compClass> <compClass>TableToggle.EatableComp</compClass>
</li> </li>
</value> </value>
</nomatch>
</li> </li>
</operations> </operations>
</Operation> </Operation>