Quote from: Teneombre on January 20, 2018, 05:43:36 PM
Yep. It update the copy bill from bench part but unfortunately, not the surgery part :/
I allow myself a small up. Even if I'm a modder, I can't manage assemblies so I need your help :/
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: Teneombre on January 20, 2018, 05:43:36 PM
Yep. It update the copy bill from bench part but unfortunately, not the surgery part :/
QuoteCould not resolve cross-reference to Verse.ThingDef named Neurotrainer
Quote<ItemCollectionGeneratorDef>
<defName>Neurotrainers</defName>
<label>neurotrainers</label>
<workerClass>ItemCollectionGenerator_Standard</workerClass>
<allowedDefs>
<li>Neurotrainer</li>
</allowedDefs>
</ItemCollectionGeneratorDef>
Quote<ItemCollectionGeneratorDef>
<defName>Neurotrainers</defName>
<label>neurotrainers</label>
<workerClass>ItemCollectionGenerator_Standard</workerClass>
<allowedDefs>
<li>MechSerumNeurotrainer</li>
</allowedDefs>
</ItemCollectionGeneratorDef>
QuoteI want to change the pathCost value. So I use the code I post on the first post. All exemple I found use the "defName" tage to target something, but there is no defName here so I want to be sure the strange thing I use is the good one. It's my first patches so I want to be sure I understand everything fine.
</Defs>
...
<ThingDef ParentName="PlantBase" Name="TreeBase" Abstract="True">
<statBases>
<MaxHitPoints>300</MaxHitPoints>
</statBases>
<description>A tree.</description>
<altitudeLayer>Building</altitudeLayer>
<selectable>true</selectable>
<fillPercent>0.25</fillPercent>
...
<pathCost>130</pathCost>
...
</ThingDef>
</Defs>
Quote<Patch>The problem is :
<Operation Class="PatchOperationReplace">
<xpath>/Defs/ThingDefs_Plants/ThingDef ParentName="PlantBase" Name="TreeBase" Abstract="True"/pathCost</xpath>
<value>
<pathCost>12</pathCost>
</value>
</Operation>
</Patch>