/// <summary> /// Applied after SetPermitted runs. /// </summary> internal static void Postfix(ConsumableConsumer __instance) { if (TraitReworkUtils.ApplyBannedFoods(__instance)) { __instance.consumableRulesChanged.Signal(); } }
/// <summary> /// Applied after OnSpawn runs. /// </summary> internal static void Postfix(MinionIdentity __instance) { var cc = __instance.gameObject.GetComponentSafe <ConsumableConsumer>(); if (cc != null) { TraitReworkUtils.ApplyBannedFoods(cc); } }
/// <summary> /// Applied after OnPrefabInit runs. /// </summary> internal static void Postfix(ConsumableConsumer __instance) { TraitReworkUtils.ApplyBannedFoods(__instance); }