mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-11-19 17:05:20 +08:00
UXAssist and CheatEnabler update
This commit is contained in:
1 parent
69702d4f09
commit
63eed23826
5 files changed
+35
-8
No files matched your search
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user