protected override Job TryGiveJob(Pawn pawn) { int transportersGroup = pawn.mindState.duty.transportersGroup; TransporterUtility.GetTransportersInGroup(transportersGroup, pawn.Map, tmpTransporters); for (int i = 0; i < tmpTransporters.Count; i++) { CompTransporter transporter = tmpTransporters[i]; if (BillyLoadTransporterUtility.HasJobOnTransporter(pawn, transporter)) { return(BillyLoadTransporterUtility.JobOnTransporter(pawn, transporter)); } } return(null); }
public override Job JobOnThing(Pawn pawn, Thing t, bool forced = false) { CompTransporter transporter = t.TryGetComp <CompTransporter>(); return(BillyLoadTransporterUtility.JobOnTransporter(pawn, transporter)); }