示例#1
0
 /// <summary>
 /// Applied after SetPermitted runs.
 /// </summary>
 internal static void Postfix(ConsumableConsumer __instance)
 {
     if (TraitReworkUtils.ApplyBannedFoods(__instance))
     {
         __instance.consumableRulesChanged.Signal();
     }
 }
示例#2
0
            /// <summary>
            /// Applied after OnSpawn runs.
            /// </summary>
            internal static void Postfix(MinionIdentity __instance)
            {
                var cc = __instance.gameObject.GetComponentSafe <ConsumableConsumer>();

                if (cc != null)
                {
                    TraitReworkUtils.ApplyBannedFoods(cc);
                }
            }
示例#3
0
 /// <summary>
 /// Applied after OnPrefabInit runs.
 /// </summary>
 internal static void Postfix(ConsumableConsumer __instance)
 {
     TraitReworkUtils.ApplyBannedFoods(__instance);
 }