-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using GiddyUpCore.Storage; | ||
using HarmonyLib; | ||
using RimWorld.Planet; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using Verse; | ||
|
||
namespace GiddyUpCaravan.Harmony | ||
{ | ||
[HarmonyPatch(typeof(AnimalPenUtility), "NeedsToBeManagedByRope")] | ||
class AnimalPenUtility_NeedsToBeManagedByRope | ||
{ | ||
static void Postfix(Pawn pawn, ref bool __result) | ||
{ | ||
if (__result && pawn.IsFormingCaravan()) | ||
{ | ||
ExtendedDataStorage store = GiddyUpCore.Base.Instance.GetExtendedDataStorage(); | ||
var caravanRider = store.GetExtendedDataFor(pawn).caravanRider; | ||
__result = caravanRider == null; | ||
return; | ||
} | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
v1.3/Source/Giddy-up-Caravan/obj/Debug/GiddyUpCaravan.csproj.CoreCompileInputs.cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
32a13aa16c467cec9fa00b82c992d6f40e91ac18 | ||
55ea0c9ad7b5d4a68b873d24339c5252a1053b85 |
Binary file modified
BIN
-2.17 KB
(90%)
v1.3/Source/Giddy-up-Caravan/obj/Debug/GiddyUpCaravan.csprojAssemblyReference.cache
Binary file not shown.
Binary file modified
BIN
+512 Bytes
(100%)
v1.3/Source/Giddy-up-Caravan/obj/Debug/GiddyUpCaravan.dll
Binary file not shown.