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">
|
<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>
|
||||||
<value>
|
<nomatch Class="PatchOperationAdd">
|
||||||
<li>
|
<xpath>Defs/ThingDef[surfaceType="Eat"]/comps</xpath>
|
||||||
<compClass>TableToggle.EatableComp</compClass>
|
<value>
|
||||||
</li>
|
<li>
|
||||||
</value>
|
<compClass>TableToggle.EatableComp</compClass>
|
||||||
|
</li>
|
||||||
|
</value>
|
||||||
|
</nomatch>
|
||||||
</li>
|
</li>
|
||||||
</operations>
|
</operations>
|
||||||
</Operation>
|
</Operation>
|
Loading…
Add table
Add a link
Reference in a new issue