Ejemplo n.º 1
0
 private bool PawnCanUseWorkGiver(Pawn pawn, WorkGiver giver)
 {
     if (!giver.def.nonColonistsCanDo && !pawn.IsColonist)
     {
         return(false);
     }
     if (pawn.WorkTagIsDisabled(giver.def.workTags))
     {
         return(false);
     }
     if (giver.ShouldSkip(pawn))
     {
         return(false);
     }
     if (giver.MissingRequiredCapacity(pawn) != null)
     {
         return(false);
     }
     return(true);
 }
Ejemplo n.º 2
0
 private bool PawnCanUseWorkGiver(Pawn pawn, WorkGiver giver)
 {
     return((giver.def.nonColonistsCanDo || pawn.IsColonist) && (pawn.story == null || !pawn.story.WorkTagIsDisabled(giver.def.workTags)) && !giver.ShouldSkip(pawn, false) && giver.MissingRequiredCapacity(pawn) == null);
 }