From 1afc9f64859092beb251a7e31c4488f4428ff507 Mon Sep 17 00:00:00 2001 From: tracer4b <61507029+tracer4b@users.noreply.github.com> Date: Tue, 13 Dec 2022 10:22:03 +0800 Subject: [PATCH] re-impl difficulty lock (#146) --- manifest.json | 10 ++++++++ .../expert/difficultylock.cfg | 23 +++++++++++++++++++ .../normal/difficultylock.cfg | 23 +++++++++++++++++++ overrides/config/difficultylock.cfg | 23 +++++++++++++++++++ 4 files changed, 79 insertions(+) create mode 100644 overrides/config-overrides/expert/difficultylock.cfg create mode 100644 overrides/config-overrides/normal/difficultylock.cfg create mode 100644 overrides/config/difficultylock.cfg diff --git a/manifest.json b/manifest.json index aebf5b2..4db0105 100644 --- a/manifest.json +++ b/manifest.json @@ -707,6 +707,16 @@ "projectID": 285612, "fileID": 3133651, "required": true + }, + { + "projectID": 342584, + "fileID": 3533131, + "required": true + }, + { + "projectID": 390886, + "fileID": 3220701, + "required": true } ] } diff --git a/overrides/config-overrides/expert/difficultylock.cfg b/overrides/config-overrides/expert/difficultylock.cfg new file mode 100644 index 0000000..5d340d1 --- /dev/null +++ b/overrides/config-overrides/expert/difficultylock.cfg @@ -0,0 +1,23 @@ +# Configuration file + +general { + # Priority 2: Sets the difficulty in any world to easy when enabled. + B:forceEasy=false + + # Priority 4: Sets the difficulty in any world to hard when enabled. + B:forceHard=false + + # Priority 3: Sets the difficulty in any world to normal when enabled. + B:forceNormal=false + + # Priority 1: Sets the difficulty in any world to peaceful when enabled. + B:forcePeaceful=true + + # When enabled, also sets the difficulty in worlds where it has already been locked. + B:shouldChangeDifficultyWhenAlreadyLocked=false + + # When enabled, locks the difficulty in any world so it cannot be changed. + B:shouldLockDifficulty=true +} + + diff --git a/overrides/config-overrides/normal/difficultylock.cfg b/overrides/config-overrides/normal/difficultylock.cfg new file mode 100644 index 0000000..9ea71c5 --- /dev/null +++ b/overrides/config-overrides/normal/difficultylock.cfg @@ -0,0 +1,23 @@ +# Configuration file + +general { + # Priority 2: Sets the difficulty in any world to easy when enabled. + B:forceEasy=false + + # Priority 4: Sets the difficulty in any world to hard when enabled. + B:forceHard=false + + # Priority 3: Sets the difficulty in any world to normal when enabled. + B:forceNormal=false + + # Priority 1: Sets the difficulty in any world to peaceful when enabled. + B:forcePeaceful=false + + # When enabled, also sets the difficulty in worlds where it has already been locked. + B:shouldChangeDifficultyWhenAlreadyLocked=false + + # When enabled, locks the difficulty in any world so it cannot be changed. + B:shouldLockDifficulty=false +} + + diff --git a/overrides/config/difficultylock.cfg b/overrides/config/difficultylock.cfg new file mode 100644 index 0000000..9ea71c5 --- /dev/null +++ b/overrides/config/difficultylock.cfg @@ -0,0 +1,23 @@ +# Configuration file + +general { + # Priority 2: Sets the difficulty in any world to easy when enabled. + B:forceEasy=false + + # Priority 4: Sets the difficulty in any world to hard when enabled. + B:forceHard=false + + # Priority 3: Sets the difficulty in any world to normal when enabled. + B:forceNormal=false + + # Priority 1: Sets the difficulty in any world to peaceful when enabled. + B:forcePeaceful=false + + # When enabled, also sets the difficulty in worlds where it has already been locked. + B:shouldChangeDifficultyWhenAlreadyLocked=false + + # When enabled, locks the difficulty in any world so it cannot be changed. + B:shouldLockDifficulty=false +} + +