Don't show the tip string for dead pawns to avoid errors

This commit is contained in:
lutepickle 2023-04-22 21:57:09 -07:00
parent 0ff5fa96d0
commit 3de006dbbf
2 changed files with 2 additions and 1 deletions

Binary file not shown.

View file

@ -800,6 +800,7 @@ namespace RJW_Menstruation
{
get
{
if (Pawn.Dead) return null;
StringBuilder tip = new StringBuilder();
tip.Append(Translations.Dialog_WombInfo01);
tip.Append(": ");
@ -821,7 +822,7 @@ namespace RJW_Menstruation
public override string CompDebugString()
{
if (curStage == Stage.None || curStage == Stage.Infertile || curStage == Stage.Pregnant) return base.CompDebugString();
if (Pawn.Dead || 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()));