Example #1
0
 public static Toil FinishDrink(TargetIndex thingIndex)
 {
     return(Toils_Mizu.FinishDrinkSomeone(thingIndex, (toil) =>
     {
         return toil.actor;
     }));
 }
Example #2
0
        public static Toil FinishDrinkPatient(TargetIndex thingIndex, TargetIndex patientIndex)
        {
            return(Toils_Mizu.FinishDrinkSomeone(thingIndex, (toil) =>
            {
                if (!toil.actor.CurJob.GetTarget(patientIndex).HasThing)
                {
                    return null;
                }

                return toil.actor.CurJob.GetTarget(patientIndex).Thing as Pawn;
            }));
        }