Rim-Of-Madness-Team / Rim-of-Madness---Vampires

Adds Vampires to RimWorld.
8 stars 6 forks source link

Allow Tool compatibility fix #55

Closed UnlimitedHugs closed 6 years ago

UnlimitedHugs commented 6 years ago

This change should restore full compatibility between Vampires and Allow Tool.

Allow Tool has a postfix on the method ThingWithComps.GetFloatMenuOptions which is not getting called when Vampires is also loaded. This happens because Vampires patches Building_Casket.GetFloatMenuOptions, which does not exist, but is still processed correctly by Harmony by patching that method on the base type. This somehow overwrites patches applied to the base method directly.
I guess that would count as a Harmony bug, but we can easily work around it on our end.

For reference, here is the patch added by Allow Tool.