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); }
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); }