Skip to content

Commit

Permalink
Harmony priority Last means first for prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alextd committed Sep 14, 2018
1 parent 4133b2a commit 3829c2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/InventorySurgery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
namespace SmartMedicine
{
[HarmonyPatch(typeof(WorkGiver_DoBill), "TryFindBestBillIngredients")]
[HarmonyPriority(Priority.First)]
[HarmonyPriority(Priority.Last)] //Patch applied last, means the prefix goes first.
public static class HackityGetBill
{
public static Bill bill;
//private static bool TryFindBestBillIngredients(, Pawn pawn, Thing billGiver, List<ThingCount> chosen)
//private static bool TryFindBestBillIngredients(Bill bill, Pawn pawn, Thing billGiver, List<ThingCount> chosen)
public static void Prefix(Bill bill)
{
HackityGetBill.bill = bill;
Expand Down

0 comments on commit 3829c2c

Please sign in to comment.