Don't show the tip string for dead pawns to avoid errors
This commit is contained in:
parent
0ff5fa96d0
commit
3de006dbbf
Binary file not shown.
|
@ -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()));
|
||||
|
|
Loading…
Reference in New Issue