From e16637f50a6d7538a1824a58c68c8d0a5ef2bd06 Mon Sep 17 00:00:00 2001 From: Soar Qin Date: Fri, 16 Dec 2022 23:07:30 +0800 Subject: [PATCH] CheatEnabler: minor fix --- CheatEnabler/CheatEnabler.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CheatEnabler/CheatEnabler.cs b/CheatEnabler/CheatEnabler.cs index 153fda8..02148a2 100644 --- a/CheatEnabler/CheatEnabler.cs +++ b/CheatEnabler/CheatEnabler.cs @@ -176,7 +176,7 @@ public class CheatEnabler : BaseUnityPlugin } foreach (var currentTech in TechToUnlock) { - UnlockTechRecursive(history, currentTech); + UnlockTechRecursive(history, currentTech, currentTech == 3606 ? 7000 : 10000); } var techQueue = history.techQueue; if (techQueue == null || techQueue.Length == 0) @@ -204,7 +204,7 @@ public class CheatEnabler : BaseUnityPlugin } var value = techStates[currentTech]; var maxLvl = Math.Min(maxLevel, value.maxLevel); - if (value.unlocked && value.curLevel >= maxLvl && value.hashUploaded >= value.hashNeeded) + if (value.unlocked) { return; } @@ -225,6 +225,7 @@ public class CheatEnabler : BaseUnityPlugin } } + if (value.curLevel < techProto.Level) value.curLevel = techProto.Level; while (value.curLevel <= maxLvl) { for (var j = 0; j < techProto.UnlockFunctions.Length; j++)