RimWorld

RimWorld

Vanilla Ideology Expanded - Anima Theme
Anima Fruit compatibility solution
This was solved by velcroboy333 in the Anima Fruit steam discussion. https://steamhost.cn/steamcommunity_com/workshop/filedetails/discussion/2604028977/3199242034528328417/

In Anima Fruit, edit:


<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="Plant_TreeAnima"]/comps/li[compClass="CompSpawnSubplant"]</xpath>
<value>
<plantsToNotOverwrite>
<li>Plant_AnimaFruit</li>
</plantsToNotOverwrite>
</value>
</Operation>

To:


<Operation Class="PatchOperationConditional">
<xpath>Defs/ThingDef[defName="Plant_TreeAnima"]/comps/li[compClass="CompSpawnSubplant"]/plantsToNotOverwrite</xpath>
<match Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="Plant_TreeAnima"]/comps/li[compClass="CompSpawnSubplant"]/plantsToNotOverwrite</xpath>
<value>
<li>Plant_AnimaFruit</li>
</value>
</match>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="Plant_TreeAnima"]/comps/li[compClass="CompSpawnSubplant"]</xpath>
<value>
<plantsToNotOverwrite>
<li>Plant_AnimaFruit</li>
</plantsToNotOverwrite>
</value>
</nomatch>
</Operation>

On the VIE side, it would look like,

<Operation Class="PatchOperationConditional">
<xpath>Defs/ThingDef[defName="Plant_TreeAnima"]/comps/li[compClass="CompSpawnSubplant"]/plantsToNotOverwrite</xpath>
<match Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="Plant_TreeAnima"]/comps/li[compClass="CompSpawnSubplant"]/plantsToNotOverwrite</xpath>
<value>
<li>Plant_PodGauranlen</li>
<li>Plant_TreeGauranlen</li>
<li>Plant_MossGauranlen</li>
</value>
</match>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="Plant_TreeAnima"]/comps/li[compClass="CompSpawnSubplant"]</xpath>
<value>
<plantsToNotOverwrite>
<li>Plant_PodGauranlen</li>
<li>Plant_TreeGauranlen</li>
<li>Plant_MossGauranlen</li>
</plantsToNotOverwrite>
</value>
</nomatch>
</Operation>