I am trying to made a definition pack which adds extra traits for people. I've added the traits claustphobe and agoraphobe.
These work fine but I am trying to now append more infomation to the core thought defintions for example I would like to add the following code:
Now I don't want to overwrite the whole though definition (as that would lead to worse compatibility issues with other mods and future versions). I want the game to load the core version of the though def and then append the nullifyingTraits list item. Is there any way of doing this?
Code Select
<?xml version="1.0" encoding="utf-8" ?>
<TraitDefs>
<TraitDef>
<defName>Claustrophobe</defName>
<commonality>0.4</commonality>
<degreeDatas>
<li>
<label>Claustrophobe</label>
<description>NAME is terrfied of enclosed spaces. HECAP can't stand caves or small rooms.</description>
</li>
</degreeDatas>
<conflictingTraits>
<li>Agoraphobe</li>
</conflictingTraits>
</TraitDef>
<TraitDef>
<defName>Agoraphobe</defName>
<commonality>0.2</commonality>
<degreeDatas>
<li>
<label>Agoraphobe</label>
<description>NAME does not like open spaces. However HE is fine in spaces others would find cramped.</description>
</li>
</degreeDatas>
<conflictingTraits>
<li>Claustrophobe</li>
</conflictingTraits>
</TraitDef>
</TraitDefs>These work fine but I am trying to now append more infomation to the core thought defintions for example I would like to add the following code:
Code Select
<ThoughtDef>
<defName>EnvironmentCramped</defName>
<nullifyingTraits>
<li>Claustrophobe</li>
</nullifyingTraits>
</ThoughtDef>Now I don't want to overwrite the whole though definition (as that would lead to worse compatibility issues with other mods and future versions). I want the game to load the core version of the though def and then append the nullifyingTraits list item. Is there any way of doing this?