private Job TryStartNewDoBillJob(Pawn pawn, Bill bill, IBillGiver giver) { Job job = WorkGiverUtility.HaulStuffOffBillGiverJob(pawn, giver, null); if (job != null) { return(job); } Job job2 = new Job(JobDefOf.DoBill, (Thing)giver); job2.targetQueueB = new List <LocalTargetInfo>(this.chosenIngThings.Count); job2.countQueue = new List <int>(this.chosenIngThings.Count); for (int i = 0; i < this.chosenIngThings.Count; i++) { job2.targetQueueB.Add(this.chosenIngThings[i].Thing); job2.countQueue.Add(this.chosenIngThings[i].Count); } job2.haulMode = HaulMode.ToCellNonStorage; job2.bill = bill; return(job2); }