public static bool IsForbiddenToPass(this Building_Door t, Pawn pawn) { if (!CaresAboutForbidden(pawn, cellTarget: false)) { return(false); } if (t.IsForbidden(pawn.Faction)) { return(true); } return(false); }
public static bool IsForbiddenToPass(this Building_Door t, Pawn pawn) { return(ForbidUtility.CaresAboutForbidden(pawn, false) && t.IsForbidden(pawn.Faction)); }