Example #1
0
 public static bool IsFoodForbiden(this Thing t, Pawn pawn)
 {
     if (pawn.IsPrisonerOfColony)
     {
         DebugLogger.debug($"[PL] Pawn {pawn.LabelShort} checking null object");
     }
     return(t != null && PrisonerFoodReservation.IsReserved(t) && !pawn.IsPrisoner);
 }
 public static bool IsFoodForbiden(this Thing t, Pawn pawn)
 {
     return(PrisonerFoodReservation.IsReserved(t) && !pawn.IsPrisoner);
 }