fix(cheatenabler): make tech downgrades safe and refresh docs

Validate the full dependency cascade and capacity reductions before applying tech downgrades. Preserve shared recipes, restore native bonus values and station limits, and clamp stored energy to the remaining capacity.

Fix warning integration and tech-tree help button ownership, cleanup and localization. Use the shared patch lifecycle and guarded transpilers.

Refresh bilingual feature and usage documentation, and consolidate the 2.4.7 changelog around the final user-visible behavior.
This commit is contained in:
soarqin committed 2026-10-11 03:09:47 +08:00
1 parent 99bcf7fa5f
commit 5fb8695348
13 files changed
+555 -813

No files matched your search

+2 -2
View File
@@ -24,7 +24,7 @@ public class CheatEnabler : BaseUnityPlugin
GamePatch.AbnormalDisablerEnabled = Config.Bind("General", "DisableAbnormalChecks", false,
"disable all abnormal checks");
TechTweaksPatch.Enabled = Config.Bind("General", "UnlockTech", false,
"Unlock clicked tech by holding key-modifilers(Shift/Alt/Ctrl), and downgrade them by holding the " +
"Upgrade clicked tech by holding key modifiers (Shift/Alt/Ctrl), and downgrade it by holding the " +
"same modifiers while downgrade mode is on (toggle it with Caps Lock)");
FactoryPatch.ImmediateEnabled = Config.Bind("Build", "ImmediateBuild", false,
"Build immediately");
@@ -110,4 +110,4 @@ public class CheatEnabler : BaseUnityPlugin
I18N.Apply();
}
}
}