mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-11-19 17:05:20 +08:00
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:
1 parent
99bcf7fa5f
commit
5fb8695348
13 files changed
+555
-813
No files matched your search
@@ -5,8 +5,8 @@ namespace CheatEnabler.Patches.Tech;
|
||||
/// <summary>
|
||||
/// Upgrade side - unlock techs by clicking them with a key-modifier held while downgrade mode is off.
|
||||
///
|
||||
/// <see cref="UnlockTechRecursive"/> mirrors the built-in <see cref="GamePatch.UnlockTech"/>
|
||||
/// implementation so the reference behaviour is reproduced exactly: prerequisites are unlocked
|
||||
/// <see cref="UnlockTechRecursive"/> preserves the previous modifier-click upgrade behavior. The
|
||||
/// prerequisites are unlocked
|
||||
/// recursively (<c>PreTechs</c> / <c>PreTechsImplicit</c>, driven by <c>PreTechsMax</c>), recipes are
|
||||
/// unlocked on level 0, every level calls <c>UnlockTechFunction</c>, tech awards are granted, the hash
|
||||
/// counters are maintained and <c>NotifyTechUnlock</c> plus <c>RegFeatureKey(1000100)</c> are fired.
|
||||
|
||||
Reference in new issue
Block a user