1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2026-02-05 04:22:21 +08:00

CheatEnabler v2.3.30

This commit is contained in:
2025-04-25 17:50:52 +08:00
parent 8362fcf546
commit 950bde3464
11 changed files with 103 additions and 83 deletions

View File

@@ -497,7 +497,7 @@ public class DysonSpherePatch: PatchImpl<DysonSpherePatch>
{
RecheckDysonSphereAutoNodes();
}
protected override void OnDisable()
{
RecheckDysonSphereAutoNodes();

View File

@@ -261,6 +261,7 @@ public class FactoryPatch : PatchImpl<FactoryPatch>
protected override void OnDisable()
{
GameLogic.OnGameEnd -= GameMain_End_Postfix;
if (_sunlight)
{
_sunlight.transform.localEulerAngles = new Vector3(0f, 180f);

View File

@@ -171,7 +171,6 @@ public static class LogisticsPatch
new CodeMatch(OpCodes.Ldlen),
new CodeMatch(OpCodes.Conv_I4)
);
UXAssist.Logger.LogDebug($"Patch ILS ship count: {matcher.Pos}");
matcher.Repeat(m => m.Advance(4).InsertAndAdvance(
new CodeInstruction(OpCodes.Ldsfld, AccessTools.Field(typeof(LogisticsPatch), nameof(AutoConfigILSShipCount))),
new CodeInstruction(OpCodes.Call, AccessTools.PropertyGetter(typeof(ConfigEntry<int>), nameof(ConfigEntry<int>.Value))),