mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Make breast growth handle body size changes
This commit is contained in:
parent
47492f6472
commit
13a883ea69
3 changed files with 20 additions and 1 deletions
Binary file not shown.
|
@ -117,7 +117,13 @@ namespace RJW_Menstruation
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
public float BreastSizeIncreased
|
||||
{
|
||||
get
|
||||
{
|
||||
return breastSizeIncreased;
|
||||
}
|
||||
}
|
||||
|
||||
public override void CompExposeData()
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue