public static void BestPawnToHuntForPredator(Pawn predator, bool forceScanWholeMap, ref Pawn __result)
 {
     if (predator.isNeomorph())
     {
         Comp_Neomorph _Neomorph = predator.TryGetComp <Comp_Neomorph>();
         __result = _Neomorph.BestPawnToHuntForPredator(predator, forceScanWholeMap);
     }
     if (predator.isXenomorph())
     {
         Comp_Xenomorph _Xenomorph = predator.TryGetComp <Comp_Xenomorph>();
         __result = _Xenomorph.BestPawnToHuntForPredator(predator, forceScanWholeMap);
     }
 }
Beispiel #2
0
 public static void BestPawnToHuntForPredator(Pawn predator, bool forceScanWholeMap, ref Pawn __result)
 {
     if (predator.isNeomorph())
     {
         Comp_Neomorph _Neomorph = predator.TryGetComp <Comp_Neomorph>();
         __result = _Neomorph.BestPawnToHuntForPredator(predator, forceScanWholeMap);
     }
     if (predator.isXenomorph())
     {
         if (predator.ageTracker.CurLifeStage == XenomorphDefOf.RRY_XenomorphFullyFormed)
         {
             Comp_Xenomorph _Xenomorph = predator.TryGetComp <Comp_Xenomorph>();
             __result = _Xenomorph.BestPawnToHuntForPredator(predator, forceScanWholeMap);
         }
     }
 }