We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a470eaf + 44c0db7 commit abdbbb2Copy full SHA for abdbbb2
Rules.cs
@@ -57,8 +57,8 @@ internal static TechLevel GetLowTechTL()
57
internal static TechLevel RuleA()
58
{
59
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);
+ int min = notResearched.Where(x => x.Value > 0).Select(x => (int)x.Key).DefaultIfEmpty(0).Min();
+ return (TechLevel)Util.Clamp(0, min - 1 + TechAdvancing_Config_Tab.Conditionvalue_A, (int)TechLevel.Transcendent);
62
}
63
64
internal static TechLevel RuleB()
0 commit comments