Null check Biotech fathers in womb window

This commit is contained in:
lutepickle 2022-11-04 17:25:03 -07:00
parent 06fbc0e188
commit 2a7feede8b
3 changed files with 2 additions and 1 deletions

Binary file not shown.

View File

@ -230,7 +230,7 @@ namespace RJW_Menstruation
fontstyleright.alignment = TextAnchor.MiddleRight;
buttonstyle.alignment = TextAnchor.MiddleLeft;
string father = p.Father.LabelShort;
string father = p.Father?.LabelShort ?? Translations.Dialog_FatherUnknown;
GUI.Box(preginfo, "1 " + p.Mother.def.label + " " + Translations.Dialog_WombInfo02, buttonstyle);
GUI.Label(preginfo, Translations.Dialog_WombInfo03 + ": " + father + " ", fontstyleright);

View File

@ -5,6 +5,7 @@ Version 1.0.8.1
- Pawns that are genetically sterile will no longer produce fertile cum, nor have a menstrual cycle.
- Biotech IUDs will now reduce pregnancy chances the same as an RJW IUD. Using both will not stack.
- A biotech pregnancy will pause before going into labor if another womb already is in labor.
- Fix errors in womb dialog for Biotech pregnancies with null father.
Version 1.0.8.0
- Support for RimWorld 1.4. All future changes to Menstruation will only be for Rimworld 1.4.