mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Little optimization in GetFertilizingInfo
This commit is contained in:
parent
1b0c25bc46
commit
17c4863a28
1 changed files with 1 additions and 5 deletions
|
@ -422,11 +422,7 @@ namespace RJW_Menstruation
|
||||||
if (eggs.NullOrEmpty()) return "";
|
if (eggs.NullOrEmpty()) return "";
|
||||||
|
|
||||||
string res = "";
|
string res = "";
|
||||||
int fertilized = 0;
|
int fertilized = eggs.Count(egg => egg.fertilized);
|
||||||
foreach (Egg egg in eggs)
|
|
||||||
{
|
|
||||||
if (egg.fertilized) fertilized++;
|
|
||||||
}
|
|
||||||
if (fertilized != 0) res += fertilized + " " + Translations.Dialog_WombInfo05;
|
if (fertilized != 0) res += fertilized + " " + Translations.Dialog_WombInfo05;
|
||||||
if (fertilized != 0 && eggs.Count - fertilized != 0) res += ", ";
|
if (fertilized != 0 && eggs.Count - fertilized != 0) res += ", ";
|
||||||
if (cums.NullOrEmpty() || TotalFertCum == 0)
|
if (cums.NullOrEmpty() || TotalFertCum == 0)
|
||||||
|
|
Loading…
Reference in a new issue