mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-11-19 17:05:20 +08:00
fix(compat): support DSP 0.10.35.29057
Adapt UXAssist and CheatEnabler to the new terrain workflows, view modes, receiver inventory, and mineral-depletion API. Preserve crafting shortcuts, batch buyout visibility, soil progression, and saved brush safety. Refresh game references and document compatibility changes. Release builds, static compatibility checks, behavior assertions, and diff checks pass; user testing is also confirmed.
This commit is contained in:
1 parent
367a72b375
commit
ac4210fe5d
15 files changed
+214
-131
No files matched your search
@@ -20,6 +20,16 @@ public class PersistPatch : PatchImpl<PersistPatch>
|
||||
Enable(false);
|
||||
}
|
||||
|
||||
[HarmonyPostfix]
|
||||
[HarmonyPatch(typeof(GamePrefsData), nameof(GamePrefsData.LateRestore))]
|
||||
private static void GamePrefsData_LateRestore_Postfix(GamePrefsData __instance)
|
||||
{
|
||||
if (Factory.ArchitectModePatch.LargerAreaForTerraform.GetHarmony() != null) return;
|
||||
var reformTool = __instance.gameData?.mainPlayer?.controller?.actionBuild?.reformTool;
|
||||
if (reformTool != null)
|
||||
reformTool.brushSize = System.Math.Min(reformTool.brushSize, BuildTool_Reform.MAX_BRUSH_SIZE);
|
||||
}
|
||||
|
||||
// Check for noModifier while pressing hotkeys on build bar
|
||||
// Harmony transpiler: UIBuildMenu__OnUpdate_Transpiler
|
||||
// Target: UIBuildMenu._OnUpdate
|
||||
|
||||
Reference in new issue
Block a user