1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-09 06:53:31 +08:00

CheatEnabler: minor fix

This commit is contained in:
2022-12-16 23:07:30 +08:00
parent eb2cf8d570
commit e16637f50a

View File

@@ -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++)