Ludeon Forums

RimWorld => Mods => Help => Topic started by: crazybmanp on August 29, 2016, 03:51:29 AM

Title: editing core defs
Post by: crazybmanp on August 29, 2016, 03:51:29 AM
So from what i understand, in order to change one value from a core def you have to completely redefine the object?

That seems a little inefficient, so I thought i should check my understanding here.

Is that truly the way if i, say wanted to change the name of the food need (i'm not doing this, its a small example), i would have to specify

  <NeedDef>
    <DefName>Food</DefName>
    <needClass>Need_Food</needClass>
    <label>new name for food</label>
    <description>Food is the amount of nutrition a creature has consumed recently. If it is at zero, a creature will take starvation damage over time.</description>
    <listPriority>800</listPriority>
    <major>true</major>
  </NeedDef>


in a file in its entirety, and update the entire definition if tynan ever changed it?
Title: Re: editing core defs
Post by: 1000101 on August 29, 2016, 06:35:56 AM
You don't need to copy the entire file, just the single def.  But yes, you need to copy the entire def to change a single value.