mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Move the biosculpter patch since it's not Biotech
This commit is contained in:
parent
8d919739bf
commit
cf2eff9556
3 changed files with 14 additions and 13 deletions
|
@ -1,5 +1,4 @@
|
|||
using HarmonyLib;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using RimWorld;
|
||||
using Verse;
|
||||
|
@ -178,15 +177,4 @@ namespace RJW_Menstruation
|
|||
}
|
||||
}
|
||||
|
||||
[HarmonyPatch(typeof(CompBiosculpterPod), nameof(CompBiosculpterPod.CannotUseNowPawnCycleReason), new Type[] { typeof(Pawn), typeof(Pawn), typeof(CompBiosculpterPod_Cycle), typeof(bool) } )]
|
||||
public class CannotUseNowPawnCycleReason_Patch
|
||||
{
|
||||
private const string eggRestorationKey = "eggRestoration";
|
||||
public static void Postfix(ref string __result, Pawn biosculptee, CompBiosculpterPod_Cycle cycle)
|
||||
{
|
||||
if (__result != null) return;
|
||||
if(cycle.Props.key == eggRestorationKey && !biosculptee.GetMenstruationComps().Any())
|
||||
__result = Translations.CannotNoWomb;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,6 +1,8 @@
|
|||
using HarmonyLib;
|
||||
using RimWorld;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
using Verse;
|
||||
|
||||
|
@ -111,6 +113,17 @@ namespace RJW_Menstruation
|
|||
|
||||
}
|
||||
|
||||
[HarmonyPatch(typeof(CompBiosculpterPod), nameof(CompBiosculpterPod.CannotUseNowPawnCycleReason), new Type[] { typeof(Pawn), typeof(Pawn), typeof(CompBiosculpterPod_Cycle), typeof(bool) })]
|
||||
public class CannotUseNowPawnCycleReason_Patch
|
||||
{
|
||||
private const string eggRestorationKey = "eggRestoration";
|
||||
public static void Postfix(ref string __result, Pawn biosculptee, CompBiosculpterPod_Cycle cycle)
|
||||
{
|
||||
if (__result != null) return;
|
||||
if (cycle.Props.key == eggRestorationKey && !biosculptee.GetMenstruationComps().Any())
|
||||
__result = Translations.CannotNoWomb;
|
||||
}
|
||||
}
|
||||
|
||||
//Merged to RJW
|
||||
//[HarmonyPatch(typeof(PawnColumnWorker_Pregnant), "GetIconFor")]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
Version 1.0.8.5
|
||||
- Added biosculptor recipe to restore 1 year's worth of eggs.
|
||||
- Added biosculpter recipe to restore 1 year's worth of eggs.
|
||||
- Babies born from multiple pregnancy will properly produce the prompt to name them.
|
||||
|
||||
Version 1.0.8.4
|
||||
|
|
Loading…
Reference in a new issue