Inheriting Class from Def Parent

Started by mangalores, December 15, 2018, 11:51:00 AM

Previous topic - Next topic

mangalores

Hi, just playing around with a personal mod of mine, trying to get it up to version 1.0 of Rimworld.

The most vexing problem I faced was that a Custom HediffDef Class I defined was not found anymore because I only had it specified in an abstract parent def.

Anyone know what changed here? The fix was to add the Class Attribute to all concrete Hediffs, but I just wondered why the inheritance seems to skip Class names now.
Everything else seems to work.

Example xml
<HediffDef Name="BodyPartBase" Abstract="True" Class="CustomHediffClass">
...
</HediffDef>

<HediffDef Name="GroupPartBase" ParentName="BodyPartBase" Abstract="True" >
...
</HediffDef>

<HediffDef ParentName="GroupPartBase">
...
</HediffDef>

Had to add the Class attribute here to make it work despite it inheriting everything else.

Mainly curiosity where one can find such changes. It was a bit of a cracker in the sense that inheritance is such a basic thing I did not believe that that was the culprit,