1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-09 02:53:29 +08:00
This commit is contained in:
2024-09-23 03:06:27 +08:00
parent 1ab57eb7ca
commit 98a8c94518
4 changed files with 16 additions and 51 deletions

View File

@@ -381,12 +381,6 @@ public static class TechPatch
void DoUnlockFuncInternal()
{
UnlockTechRecursive(__instance.techProto, maxLevel);
history.VarifyTechQueue();
if (history.currentTech != history.techQueue[0])
{
history.currentTech = history.techQueue[0];
}
var mainPlayer = GameMain.mainPlayer;
for (var i = 0; i < 6; i++)
{
@@ -398,6 +392,12 @@ public static class TechPatch
mainPlayer.mecha.AddProductionStat(itemId, itemCount, mainPlayer.nearestFactory);
mainPlayer.mecha.AddConsumptionStat(itemId, itemCount, mainPlayer.nearestFactory);
}
UnlockTechRecursive(__instance.techProto, maxLevel);
history.VarifyTechQueue();
if (history.currentTech != history.techQueue[0])
{
history.currentTech = history.techQueue[0];
}
}
}
}