Skip to content

Commit

Permalink
Haul Urgent Hijacking
Browse files Browse the repository at this point in the history
  • Loading branch information
Mehni committed Jul 29, 2018
1 parent 2458877 commit f270c65
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Binary file modified Assemblies/PickUpAndHaul.dll
Binary file not shown.
6 changes: 3 additions & 3 deletions Source/PickUpAndHaul/PickUpAndHaul/HarmonyPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ static HarmonyPatches()
{
if (ModCompatibilityCheck.AllowToolIsActive)
{
harmony.Patch(AccessTools.Method(typeof(AllowTool.WorkGiver_HaulUrgently), "JobOnThing"),
harmony.Patch(AccessTools.Method(typeof(AllowTool.WorkGiver_HaulUrgently), nameof(AllowTool.WorkGiver_HaulUrgently.JobOnThing)),
new HarmonyMethod(typeof(HarmonyPatches), nameof(AllowToolHaulUrgentlyJobOnThing_PreFix)), null, null);
}
}))();
Expand All @@ -66,7 +66,7 @@ static HarmonyPatches()
}
catch (TypeLoadException) { }

Log.Message("PickUpAndHaul v0.1.0.1 welcomes you to RimWorld with pointless logspam.");
Log.Message("PickUpAndHaul v0.1.0.2 welcomes you to RimWorld with pointless logspam.");
}

private static bool AllowToolHaulUrgentlyJobOnThing_PreFix(ref Job __result, Pawn pawn, Thing t, bool forced = false)
Expand All @@ -90,7 +90,7 @@ private static bool AllowToolHaulUrgentlyJobOnThing_PreFix(ref Job __result, Paw
return false;
}

Job haul = new Job(PickUpAndHaulJobDefOf.HaulToInventory, t)
Job haul = new Job(PickUpAndHaulJobDefOf.HaulToInventory, t, storeCell)
{
count = t.stackCount
};
Expand Down
2 changes: 1 addition & 1 deletion Source/PickUpAndHaul/PickUpAndHaul/PickUpAndHaul.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<Private>True</Private>
</Reference>
<Reference Include="AllowTool">
<HintPath>..\..\..\..\..\..\..\workshop\content\294100\761421485\Assemblies\AllowTool.dll</HintPath>
<HintPath>..\..\..\..\AllowTool 1.0\Assemblies\AllowTool.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Assembly-CSharp">
Expand Down

0 comments on commit f270c65

Please sign in to comment.