Moved Insect Incubator and Breeder to Hive Genes

This commit is contained in:
Vegapnk 2023-04-24 08:56:28 +02:00
parent 8605a09941
commit 765ef964c4
6 changed files with 36 additions and 28 deletions

View file

@ -12,9 +12,10 @@ namespace RJW_Genes
/// Patched Class is https://gitgud.io/Ed86/rjw/-/blob/master/1.4/Source/Common/Helpers/SexUtility.cs
///
/// Normal Egg-Pregnancy logic is in https://gitgud.io/Ed86/rjw/-/blob/master/1.4/Source/Modules/Pregnancy/Pregnancy_Helper.cs
/// Gene: rjw_genes_insectbreeder
/// </summary>
[HarmonyPatch(typeof(SexUtility), "Aftersex")]
static class Patch_EggFertilization
static class Patch_InsectBreeder_EggFertilization
{
public static void Postfix(SexProps props)
{

View file

@ -15,9 +15,11 @@ namespace RJW_Genes
/// <summary>
/// This Class patches the RJW-DoEgg to allow up to MaxEggSizeMul times the original amount of eggs.
/// This harmony patch was kindly provided by 'shabalox' https://github.com/Shabalox/RJW_Genes_Addons/
///
/// For Gene: rjw_genes_insectincubator
/// </summary>
[HarmonyPatch(typeof(PregnancyHelper), "DoEgg")]
static class PatchPregnancyHelper
static class Patch_InsectIncubator_PregnancyHelper
{
[HarmonyTranspiler]
public static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions, ILGenerator il)