protected override Job TryGiveJob(Pawn pawn) { ShipBase ship = (ShipBase)pawn.mindState.duty.focus; if (LoadShipCargoUtility.HasJobOnShip(pawn, ship)) { return(LoadShipCargoUtility.JobLoadShipCargo(pawn, ship)); } return(null); }
protected override Job TryGiveJob(Pawn pawn) { ShipBase ship = (ShipBase)pawn.mindState.duty.focus; if (LoadShipCargoUtility.HasJobOnShip(pawn, ship)) { Job job = LoadShipCargoUtility.JobLoadShipCargo(pawn, ship); if (job != null) { //Log.Message("Giving job to " + pawn.Name); return(job); } } return(null); }