Menu

Show posts

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 Menu

Topics - Darkshadow

#1
Help / Append more properties to a "core" definition
December 17, 2014, 04:42:18 PM
I am trying to made a definition pack which adds extra traits for people. I've added the traits claustphobe and agoraphobe.

<?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:
<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?