public static void Postfix(ThingDef plantDef, ref bool __result) { if (plantDef.HasStoryExtension()) { __result = CanBeMade(plantDef, ref __result); } }
public static void Postfix(RecipeDef __instance, ref bool __result) { foreach (ThingDefCountClass count in __instance.products) { ThingDef def = count.thingDef; if (def.HasStoryExtension()) { __result = CanBeMade(def, ref __result); } } }