Ludeon Forums

RimWorld => Bugs => Topic started by: Alistaire on March 10, 2020, 09:55:28 AM

Title: [1.1.2567 (+ Royalty)] QuestNode_Equal compares incorrectly
Post by: Alistaire on March 10, 2020, 09:55:28 AM
Using mods which add new children of Def, the following issue occurs:


This error prevents mods from extending ThingDef, just because of a comparison to human leather for no good reason.

There should be a fallback which checks whether the Def children EXACTLY match rather than if they are assignable from eachother, at least in this case. Specifically, the DefDatabase does NOT allow calling one ThingDef and converting it to another Type : ThingDef, so this equality comparison shouldn't be able to do so (e.g it shouldn't check whether the types are assignable from eachother, but whether they ARE eachother).




Since this is an interpretation of the issues; exact stacktrace attached to post (stacktrace.png).