mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2025-12-09 02:53:29 +08:00
WIP
This commit is contained in:
@@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user