Hello, I need some help with adding custom properties to RimWorld.IngestibleProperties.
I've tried similar ways like with StatDef, but none won't work, as I always get an error, that IngestibleProperties don't contain my new property.
This is how I do that with a custom stat for my toxin protection suit, which works flawless so far.
Any ideas how to modify that to add new properties to IngestibleProperties?
I've tried similar ways like with StatDef, but none won't work, as I always get an error, that IngestibleProperties don't contain my new property.
Quotepublic class _StatDefOf
{
public static StatDef ArmorRating_Toxin;
public _StatDefOf()
{
DefOfHelper.RebindAllDefOfs(true);
}
}
This is how I do that with a custom stat for my toxin protection suit, which works flawless so far.
Any ideas how to modify that to add new properties to IngestibleProperties?