Make breast growth handle body size changes

This commit is contained in:
lutepickle 2022-03-12 20:14:06 -08:00
parent 47492f6472
commit 13a883ea69
3 changed files with 20 additions and 1 deletions

Binary file not shown.

View File

@ -117,7 +117,13 @@ namespace RJW_Menstruation
}
}
public float BreastSizeIncreased
{
get
{
return breastSizeIncreased;
}
}
public override void CompExposeData()
{

View File

@ -92,4 +92,17 @@ namespace RJW_Menstruation
}
}
[HarmonyPatch(typeof(CompHediffBodyPart), "updatesize")]
public static class updatesize_Patch
{
public static void Postfix(CompHediffBodyPart __instance)
{
HediffComp_Breast comp = __instance.parent.GetBreastComp();
if (comp != null)
{
__instance.parent.Severity += comp.BreastSizeIncreased;
}
}
}
}