Don't show stage or time to next stage for pawns that don't cycle

This commit is contained in:
lutepickle 2024-07-31 15:16:06 -07:00
parent f70c2ad585
commit 80611882c9

View file

@ -794,7 +794,7 @@ namespace RJW_Menstruation
{
get
{
if (Pawn.Dead) return null;
if (Pawn.Dead || !Pawn.ShouldCycle()) return null;
StringBuilder tip = new StringBuilder();
tip.Append(Translations.Dialog_WombInfo01);
tip.Append(": ");
@ -816,7 +816,11 @@ namespace RJW_Menstruation
public override string CompDebugString()
{
if (Pawn.Dead || curStage == Stage.None || curStage == Stage.Infertile || curStage == Stage.Pregnant) return null;
if (Pawn.Dead ||
!Pawn.ShouldCycle() ||
curStage == Stage.None ||
curStage == Stage.Infertile ||
curStage == Stage.Pregnant) return null;
StringBuilder debugString = new StringBuilder();
debugString.Append($"Time to next state: ");
debugString.Append(GenDate.ToStringTicksToPeriod(TicksToNextStage()));