コード例 #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);
 }
コード例 #2
0
 public static bool IsFoodForbiden(this Thing t, Pawn pawn)
 {
     return(PrisonerFoodReservation.IsReserved(t) && !pawn.IsPrisoner);
 }