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
@@ -4,13 +4,9 @@
|
||||
## Changlog
|
||||
|
||||
* 2.4.7
|
||||
* `Unlock Tech with Key-Modifiers` becomes `Quickly upgrade/downgrade tech with key-modifiers`.
|
||||
* Holding `Shift` / `Ctrl` / `Ctrl + Shift` / `Alt` while clicking a tech adds 1 / 10 / 100 / all levels; all direct prerequisites are unlocked as well.
|
||||
* `Caps Lock` toggles downgrade mode; the same modifiers then subtract 1 / 10 / 100 levels, or revert the tech to locked.
|
||||
* Downgrading reverts the tech's upgrade values as well, including multiplicative, assignment, and boolean tech functions, so repeated up/down cycles do not drift.
|
||||
* Toggling downgrade mode reports itself like the other toggles: a realtime tip popup plus a critical warning banner. The banner shows on its own, without requiring `Build without condition` or `No collision` to be on, and outranks both of them while they are.
|
||||
* The `?` button in the tech tree window shows the full upgrade and downgrade key reference, using the same title and text as the config panel's tip button.
|
||||
* While the option is off, neither the `?` button nor the `Caps Lock` toggle is active, so the key cannot collide with other bindings.
|
||||
* Extend `Unlock Tech with Key-Modifiers` with a downgrade mode.
|
||||
* Press `Caps Lock` to toggle downgrade mode. Modifier clicks lower tech levels and revert their bonuses and dependent tech levels; `Alt` returns the tech to locked.
|
||||
* The current mode is shown by a popup and warning banner. A help button in the tech tree explains the key combinations.
|
||||
* 2.4.6
|
||||
* `Architect mode`: Restore unlimited use of buildings, Logistics Bots, Logistics Drones, and Logistics Vessels, and increase the default displayed count from 100 to 999.
|
||||
* `Wind Turbines do global power coverage`: Fix a possible startup crash when enabled.
|
||||
@@ -205,13 +201,9 @@
|
||||
## 更新日志
|
||||
|
||||
* 2.4.7
|
||||
* `使用组合键点击解锁科技` 改为 `使用组合键快速升降级科技`。
|
||||
* 按住 `Shift` / `Ctrl` / `Ctrl + Shift` / `Alt` 点击科技,分别提升 1 / 10 / 100 / 全部等级;所有直接前置科技也会被解锁。
|
||||
* `Caps Lock` 切换降级模式,开启后同样的组合键变为降低 1 / 10 / 100 等级,或将科技回退到未解锁。
|
||||
* 降级同时回退科技带来的升级数值,覆盖乘法型、赋值型和布尔型科技函数,因此反复升降级不会产生数值漂移。
|
||||
* 切换降级模式会像其它开关一样提示:实时弹窗 + 严重警告横幅。横幅可独立显示,不需要开启`无条件建造`或`无碰撞`;这两个开启时,降级模式的提示优先显示。
|
||||
* 科技树界面的 `?` 按钮显示完整的升降级组合键说明,标题与文本同 MOD 设置面板的提示按钮一致。
|
||||
* 关闭该选项时,科技界面不显示 `?` 按钮,`Caps Lock` 也不生效,避免与原版其它键位冲突。
|
||||
* `使用组合键点击解锁科技` 新增降级模式。
|
||||
* 按 `Caps Lock` 切换降级模式。按住组合键点击可降低科技等级,同时回退升级效果及后继科技等级;`Alt` 将科技回退到未解锁。
|
||||
* 弹窗和警告横幅显示当前模式,科技树中的帮助按钮提供组合键说明。
|
||||
* 2.4.6
|
||||
* `建筑师模式`:修复建筑、配送运输机、物流运输机和星际物流运输船无法无限使用的问题,默认显示数量由 100 提高至 999。
|
||||
* `风力涡轮机供电覆盖全球`:修复启用后可能导致启动崩溃的问题。
|
||||
|
||||
Reference in new issue
Block a user