Example #1
0
 protected override bool CanInteractWith(Pawn pawn, Thing t, bool inBed)
 {
     if (!base.CanInteractWith(pawn, t, inBed))
     {
         return(false);
     }
     if (inBed)
     {
         Building_Bed bed = pawn.CurrentBed();
         return(WatchBuildingUtility.CanWatchFromBed(pawn, bed, t));
     }
     return(true);
 }
        protected override bool CanInteractWith(Pawn pawn, Thing t, bool inBed)
        {
            bool result;

            if (!base.CanInteractWith(pawn, t, inBed))
            {
                result = false;
            }
            else if (inBed)
            {
                Building_Bed bed = pawn.CurrentBed();
                result = WatchBuildingUtility.CanWatchFromBed(pawn, bed, t);
            }
            else
            {
                result = true;
            }
            return(result);
        }