From e05ef861c0e4a9d8206f5363f0c760e3181b47a1 Mon Sep 17 00:00:00 2001 From: notfood Date: Tue, 27 Nov 2018 21:25:28 -0500 Subject: [PATCH] Handle recycle output better --- Assemblies/MendAndRecycle.dll | Bin 24576 -> 24576 bytes Source/JobDriver_Recycle.cs | 14 +++++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Assemblies/MendAndRecycle.dll b/Assemblies/MendAndRecycle.dll index f5c7bc6a3d75feccd7656f9b875b61c12475513a..f14ecac9acb6d574257166f3e6c4736d719df4b8 100644 GIT binary patch delta 605 zcmZoTz}RqraY6_4v!8z_cFQvEo47KZFQ=S=!Jh#L8WK zOjcylnHUBamD&c_m}G-~yl)5bywECI(i9fX#wT%_59*CQlXH!1!*nn|K!^ zqwnO460;dsP0p2E%O%K>e}jR6OWc0LWKAhw0SQ44vHY7r0gbyrB7gbhRw+waiTo6h z5>XNH{QE$L8dJ3#0|Sf310Y-5Yw~$1OTKELd$_8n00{~4{MDPeq+R&xEi6IqXl4** zn$01`5DDcKGf6XuF|>nuZ4xblj6mKpFz+E_FgqKAIKv7kFI`L;$aA#;nevdcM%0Bv zoWU2uW85MFQVEmWC#nPFg+S$m1s4KU&e4K$!v&pyl1sq6i41$0jG4t5c0hO%D+Dz- zBpCEIf7hJO!SYkeYwG4nMt(8^bGglm{H>?CZf$Wq!1d;V3E}X0ZKtBd-wv3Qx z6q*7JWRTO=f!GQY6~!1AOm2*l5&&3Nl7tjJlHHJ?ZQ{DVhOUXnL(IoHisC4E0kBvB+VekPz>g^Nwf$u z0(q0byoZdz>}(9;3{#-IbTMfl&(H>B%0tc?Q5Ozz21^K!af=8@B}{Igs1A_l0F@IK zTnJRzp#|lJ3pxQMCxCeq8TK+6GmA4Uf$$_&2x@RhFi36Y)|$@2@Pro?txEXvuY9GmF0qC#wxGWNkM4M#wV?H9&(Ba@mPI9BnhCIE= 1) { list [0].SetPositionDirect (pawn.Position); job.bill.Notify_IterationCompleted (pawn, list); - job.targetB = list [0]; + job.SetTarget(IngredientInd, list[0]); + + pawn.Map.reservationManager.Reserve (pawn, job, job.GetTarget(IngredientInd), 1); - pawn.Map.reservationManager.Reserve (pawn, job, job.targetB, 1); + ReadyForNextToil(); } else { Log.Message ("MendAndRecycle :: " + pawn + " could not reclaim anything from " + objectThing); - } - ReadyForNextToil (); + pawn.jobs.EndCurrentJob(JobCondition.Succeeded); + } } workCycleProgress = workCycle;