From e43a50522bd9dc8b1b720b2510bad547f0658311 Mon Sep 17 00:00:00 2001 From: lutepickle <28810-lutepickle@users.noreply.gitgud.io> Date: Mon, 1 May 2023 15:11:58 -0700 Subject: [PATCH] Add StageProgressNextUpdate --- .../HediffComps/HediffComp_Menstruation.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/1.4/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs b/1.4/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs index 2745e80..2b85d10 100644 --- a/1.4/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs +++ b/1.4/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs @@ -630,6 +630,15 @@ namespace RJW_Menstruation } } + public float StageProgessNextUpdate + { + get + { + if (pregnancy != null) return StageProgress; + return Mathf.Clamp01((float)(curStageTicks + TickInterval * Configurations.CycleAcceleration) / currentIntervalTicks); + } + } + public Texture2D GetStageTexture { get