2022-07-12 22:49:55 +00:00
|
|
|
|
using HarmonyLib;
|
2021-08-13 15:29:43 +00:00
|
|
|
|
using Milk;
|
|
|
|
|
using RJW_Menstruation;
|
2022-07-12 22:49:55 +00:00
|
|
|
|
using System.Reflection;
|
|
|
|
|
using Verse;
|
2021-08-13 15:29:43 +00:00
|
|
|
|
|
|
|
|
|
namespace MilkModule
|
|
|
|
|
{
|
|
|
|
|
internal static class First
|
|
|
|
|
{
|
|
|
|
|
static First()
|
|
|
|
|
{
|
2022-07-16 14:11:58 +00:00
|
|
|
|
Harmony har = new Harmony("RJW_Menstruation_MilkModule");
|
2021-08-13 15:29:43 +00:00
|
|
|
|
har.PatchAll(Assembly.GetExecutingAssembly());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[HarmonyPatch(typeof(HumanCompHasGatherableBodyResource), "Gathered")]
|
|
|
|
|
public static class Milk_Patch
|
|
|
|
|
{
|
2022-04-28 16:52:51 +00:00
|
|
|
|
public static void Postfix(HumanCompHasGatherableBodyResource __instance)
|
2021-08-13 15:29:43 +00:00
|
|
|
|
{
|
|
|
|
|
HediffComp_Breast comp = null;
|
2022-03-18 14:31:17 +00:00
|
|
|
|
if (__instance.parent is Pawn pawn) comp = pawn.GetBreastComp();
|
2021-08-13 15:29:43 +00:00
|
|
|
|
if (comp != null)
|
|
|
|
|
{
|
|
|
|
|
comp.AdjustAreolaSize(Rand.Range(0.0f, 0.01f * Configurations.NipplePermanentTransitionVariance));
|
|
|
|
|
comp.AdjustNippleSize(Rand.Range(0.0f, 0.01f * Configurations.NipplePermanentTransitionVariance));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|