mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Don't show the tip string for dead pawns to avoid errors
This commit is contained in:
parent
0ff5fa96d0
commit
3de006dbbf
2 changed files with 2 additions and 1 deletions
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 a new issue