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

+1 -2
View File
@@ -3,8 +3,7 @@ namespace CheatEnabler.Patches.Tech;
/// <summary>
/// The key-modifier semantics shared by the upgrade and the downgrade side.
///
/// The mapping mirrors the built-in <see cref="GamePatch.UnlockTech"/> handler so both features behave
/// identically, and the downgrade side is its exact mirror:
/// Both directions use the same modifier mapping:
///
/// <list type="table">
/// <item><term>Shift</term><description>+1 / -1</description></item>