Skip to content

Commit abdbbb2

Browse files
committed
2 parents a470eaf + 44c0db7 commit abdbbb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Rules.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ internal static TechLevel GetLowTechTL()
5757
internal static TechLevel RuleA()
5858
{
5959
var notResearched = researchProjectStoreTotal.Except(researchProjectStoreFinished);
60-
int min = notResearched.Where(x => x.Value > 0).Min(x => (int)x.Key);
61-
return (TechLevel)(TechLevel)Util.Clamp(0, min - 1 + TechAdvancing_Config_Tab.Conditionvalue_A, (int)TechLevel.Transcendent);
60+
int min = notResearched.Where(x => x.Value > 0).Select(x => (int)x.Key).DefaultIfEmpty(0).Min();
61+
return (TechLevel)Util.Clamp(0, min - 1 + TechAdvancing_Config_Tab.Conditionvalue_A, (int)TechLevel.Transcendent);
6262
}
6363

6464
internal static TechLevel RuleB()

0 commit comments

Comments
 (0)