internal static bool IsDispenser(this JobDriver_SocialRelax obj) { var thing = obj.TargetThing(OptionalDrinkInd); if (thing == null) { return(false); } return(thing is Building_AutomatedFactory); }
internal static bool IsDrink(this JobDriver_SocialRelax obj) { var thing = obj.TargetThing(OptionalDrinkInd); if (thing == null) { return(false); } return(thing.def.IsAlcohol()); }
internal static Building_AutomatedFactory Dispenser(this JobDriver_SocialRelax obj) { return(obj.TargetThing(OptionalDrinkInd) as Building_AutomatedFactory); }
internal static Thing Alcohol(this JobDriver_SocialRelax obj) { return(obj.TargetThing(OptionalDrinkInd)); }
internal static bool HasDrinkOrDispenser(this JobDriver_SocialRelax obj) { return(obj.TargetThing(OptionalDrinkInd) != null); }
internal static Thing OccupyThing(this JobDriver_SocialRelax obj) { return(obj.TargetThing(ChairOrSpotInd)); }
internal static bool HasChair(this JobDriver_SocialRelax obj) { return(obj.TargetThing(ChairOrSpotInd) != null); }
internal static Thing GatherSpotParent(this JobDriver_SocialRelax obj) { return(obj.TargetThing(GatherSpotParentInd)); }