Ejemplo n.º 1
0
 // Add in any AbilityUser Components, if the Pawn is accepting
 public static void InternalAddInAbilityUsers(Pawn pawn)
 {
     if (pawn != null && pawn.RaceProps != null && pawn.RaceProps.Humanlike)
     {
         AbilityUserUtility.TransformPawn(pawn);
     }
 }
Ejemplo n.º 2
0
        //// Catches loading of Pawns
        //public static void ExposeData_PostFix(Pawn __instance)
        //{ HarmonyPatches.internalAddInAbilityUsers(__instance); }

        //// Catches generation of Pawns
        //public static void GeneratePawn_PostFix(PawnGenerationRequest request, Pawn __result)
        //{ HarmonyPatches.internalAddInAbilityUsers(__result); }

        // Add in any AbilityUser Components, if the Pawn is accepting
        public static void InternalAddInAbilityUsers(Pawn pawn)
        {
            //            Log.Message("Trying to add AbilityUsers to Pawn");
            if (pawn != null && pawn.RaceProps != null && pawn.RaceProps.Humanlike)
            {
                AbilityUserUtility.TransformPawn(pawn);
            }
        }