mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Remove redundant assignments
This commit is contained in:
parent
6fe38eb46e
commit
06fbc0e188
1 changed files with 3 additions and 5 deletions
|
@ -92,10 +92,7 @@ namespace RJW_Menstruation
|
|||
if (hediff is Hediff_MechanoidPregnancy)
|
||||
return ContentFinder<Texture2D>.Get(("Womb/Mechanoid_Fluid"), true);
|
||||
|
||||
string icon = "Fetus/Slime_Abomi02";
|
||||
string fetustex = "Fetus/Fetus_Default";
|
||||
ThingDef babydef = comp.Pawn.def; // TODO: Pregenerated babies
|
||||
|
||||
float gestationProgress = comp.StageProgress;
|
||||
int babycount = hediff is Hediff_BasePregnancy preg ? preg.babies.Count : 1;
|
||||
|
||||
|
@ -103,8 +100,9 @@ namespace RJW_Menstruation
|
|||
{
|
||||
babydef = h.babies?.FirstOrDefault()?.def ?? ThingDefOf.Human;
|
||||
}
|
||||
|
||||
fetustex = babydef.GetModExtension<PawnDNAModExtension>()?.fetusTexPath ?? "Fetus/Fetus_Default";
|
||||
|
||||
string fetustex = babydef.GetModExtension<PawnDNAModExtension>()?.fetusTexPath ?? "Fetus/Fetus_Default";
|
||||
string icon;
|
||||
if (gestationProgress < 0.2f) icon = comp.WombTex + "_Implanted";
|
||||
else if (gestationProgress < 0.3f)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue