mirror of
https://github.com/vegapnk/RJW-Genes.git
synced 2024-08-15 00:23:31 +00:00
Removed Orphaned Patch for Egg Fertilisation, maybe fix #23
This commit is contained in:
parent
a28354b164
commit
b6ac823fd7
3 changed files with 0 additions and 25 deletions
Binary file not shown.
|
@ -1,24 +0,0 @@
|
||||||
using HarmonyLib;
|
|
||||||
using rjw;
|
|
||||||
using Verse;
|
|
||||||
|
|
||||||
namespace RJW_Genes
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// Kindly provided by 'shabalox' https://github.com/Shabalox/RJW_Genes_Addons/
|
|
||||||
///
|
|
||||||
/// Note on the logic: the result mentioned below is changing the result of fertilization (true or false) to true if the pawn has the insect-breeder gene.
|
|
||||||
/// </summary>
|
|
||||||
[HarmonyPatch(typeof(PawnExtensions), "RaceImplantEggs")]
|
|
||||||
public static class PatchPawnExtensions
|
|
||||||
{
|
|
||||||
[HarmonyPostfix]
|
|
||||||
public static void Postfix(Pawn pawn, ref bool __result)
|
|
||||||
{
|
|
||||||
if (!__result)
|
|
||||||
{
|
|
||||||
__result = GeneUtility.IsInsectBreeder(pawn);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -44,7 +44,6 @@
|
||||||
<Compile Include="GeneDefOf.cs" />
|
<Compile Include="GeneDefOf.cs" />
|
||||||
<Compile Include="Genes\Breeding\Gene_MechBreeder.cs" />
|
<Compile Include="Genes\Breeding\Gene_MechBreeder.cs" />
|
||||||
<Compile Include="Genes\Breeding\PatchMechBirth.cs" />
|
<Compile Include="Genes\Breeding\PatchMechBirth.cs" />
|
||||||
<Compile Include="Genes\Breeding\PatchPawnExtensions.cs" />
|
|
||||||
<Compile Include="Genes\Breeding\Patch_EggFertilization.cs" />
|
<Compile Include="Genes\Breeding\Patch_EggFertilization.cs" />
|
||||||
<Compile Include="Genes\Breeding\PatchPregnancyHelper.cs" />
|
<Compile Include="Genes\Breeding\PatchPregnancyHelper.cs" />
|
||||||
<Compile Include="Genes\Cum\CumUtility.cs" />
|
<Compile Include="Genes\Cum\CumUtility.cs" />
|
||||||
|
|
Loading…
Reference in a new issue