-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Children now inherit the settings that determine whether they are mou…
…ntable by anyone/their master from their parent on birth
- Loading branch information
Showing
7 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
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,26 @@ | ||
using HarmonyLib; | ||
using RimWorld; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using Verse; | ||
|
||
namespace GiddyUpCore.Harmony | ||
{ | ||
[HarmonyPatch(typeof(PawnUtility), "TrySpawnHatchedOrBornPawn")] | ||
class PawnUtility_TrySpawnHatchedOrBornPawn | ||
{ | ||
static void Postfix(Pawn pawn, Thing motherOrEgg) | ||
{ | ||
if(motherOrEgg is Pawn mother) | ||
{ | ||
var pawnData = Base.Instance.GetExtendedDataStorage().GetExtendedDataFor(pawn); | ||
var motherData = Base.Instance.GetExtendedDataStorage().GetExtendedDataFor(mother); | ||
pawnData.mountableByAnyone = motherData.mountableByAnyone; | ||
pawnData.mountableByMaster = motherData.mountableByMaster; | ||
} | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
1.3/Source/Giddy-up-Core/obj/Debug/GiddyUpCore.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 @@ | ||
b4e9e998f0e259346ad24cc5b2e8e6dd8a59cd27 | ||
9f3d77dc20ee72d3a1001e7b0c325a2173691521 |
Binary file modified
BIN
+5.81 KB
(100%)
1.3/Source/Giddy-up-Core/obj/Debug/GiddyUpCore.csprojAssemblyReference.cache
Binary file not shown.
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