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
1290d289a8
commit
e0b8f30e76
2 changed files with 20 additions and 1 deletions
|
@ -143,7 +143,13 @@ namespace RJW_Menstruation
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public float BreastSizeIncreased
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return breastSizeIncreased;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public override void CompExposeData()
|
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