1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-09 03:33:29 +08:00

UXAssist and CheatEnabler update

This commit is contained in:
2025-04-06 17:04:40 +08:00
parent 69702d4f09
commit 63eed23826
5 changed files with 35 additions and 8 deletions

View File

@@ -1063,13 +1063,13 @@ public class FactoryPatch : PatchImpl<FactoryPatch>
{
var groupIndex = (int)veinPool[veinId].groupIndex;
amount -= usedCount;
veinPool[veinId].amount = amount;
if (amount < __instance.minimumVeinAmount)
{
__instance.minimumVeinAmount = amount;
}
var veinGroups = factory.veinGroups;
veinGroups[groupIndex].amount = amount;
factory.veinGroups[groupIndex].amount -= usedCount;
factory.veinAnimPool[veinId].time = amount >= 20000 ? 0f : 1f - 0.00005f;
if (amount <= 0)
{
@@ -1173,10 +1173,10 @@ public class FactoryPatch : PatchImpl<FactoryPatch>
usedCount = maxAllowed;
}
amount = veinPool[veinId].amount -= usedCount;
var veinGroups = factory.veinGroups;
amount -= usedCount;
veinPool[veinId].amount = amount;
var groupIndex = veinPool[veinId].groupIndex;
veinGroups[groupIndex].amount -= usedCount;
factory.veinGroups[groupIndex].amount -= usedCount;
factory.veinAnimPool[veinId].time = amount >= 25000 ? 0f : 1f - amount * VeinData.oilSpeedMultiplier;
if (amount <= 2500)
{