边缘世界 RimWorld

边缘世界 RimWorld

Anima Fruit
velcroboy333 2021 年 12 月 9 日 上午 11:21
Conditional Patch Edit
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>
< >
正在显示第 1 - 8 条,共 8 条留言
RealLifeHobgoblin 2021 年 12 月 11 日 下午 3:07 
What patch would VIE need? Easier for users to add the patch themselves than wait for Oskar.
最后由 RealLifeHobgoblin 编辑于; 2021 年 12 月 11 日 下午 3:14
velcroboy333 2021 年 12 月 13 日 上午 9:19 
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>
Stardust 🌠  [开发者] 2021 年 12 月 22 日 上午 1:43 
I apologise for getting to this late, which file do i put this code/which file contains the code that i need to replace? If you would be so kind to tell me i could implement this today.
RealLifeHobgoblin 2021 年 12 月 22 日 上午 5:40 
velcroboy333 2021 年 12 月 22 日 上午 8:24 
Wolfcub05, with this conditional patch, you'll want to load this mod after VIE-Anima (unless they also change their patch to a conditional one.) This way, their patch will add the initial node(list) and yours will add the anima fruit to the list.
velcroboy333 2021 年 12 月 22 日 上午 11:50 
I should also note, in my comment on the main page, both mods don't need to have the conditional patch. It's ideal if they do. But, as long as the mod with it is loaded after the one w/out, it will be fine. (I must not have had any coffee yet that day. :espresso::isa:)
Oneguard 2021 年 12 月 23 日 下午 8:16 
does this fix the grass eating issue.
Stardust 🌠  [开发者] 2021 年 12 月 23 日 下午 10:41 
Thanks for your help :) I've implemented the patch to the best of my abilities. We'll see if it fixes anything!
< >
正在显示第 1 - 8 条,共 8 条留言
每页显示数: 1530 50