protected override Job TryGiveJob(Pawn pawn)
        {
            if (!InteractionUtility.CanInitiateInteraction(pawn))
            {
                return(null);
            }
            Pawn patient = SickPawnVisitUtility.FindRandomSickPawn(pawn, JoyCategory.High);

            if (patient == null)
            {
                return(null);
            }

            Thing wheelChair = ToolsForHaulUtility.FindWheelChair(patient, pawn);

            if (wheelChair == null || !pawn.CanReserve(wheelChair))
            {
                return(null);
            }
            return(new Job(DefDatabase <JobDef> .GetNamed("TakeToWheelChair"), patient, wheelChair)
            {
                maxNumToCarry = 1
            });
        }
Beispiel #2
0
 protected Vehicle_Cart FindWheelChair(Pawn pawn, Pawn patient)
 {
     return(ToolsForHaulUtility.FindWheelChair(patient, pawn));
 }