Skip to content

Commit 44c0db7

Browse files
committed
1 parent 7790ab1 commit 44c0db7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)