From 23149d30dab382a6381ea8327fef499a46e8415f Mon Sep 17 00:00:00 2001 From: Faraphel Date: Wed, 17 Aug 2022 19:45:44 +0200 Subject: [PATCH] added a settings to disable the balancing (will enable the cheat mode) --- Pack/MKWFaraphel/macros.json | 1 + Pack/MKWFaraphel/mod_config.json | 12 ++++++++++++ .../files/Race/Common.d/Effect/RKRace.breff.json | 3 +++ .../_PATCH/files/Race/Common.d/balancing.json | 3 +++ .../files/Race/Common.d/itemBoxNiseRtpa.brres.json | 3 +++ 5 files changed, 22 insertions(+) create mode 100644 Pack/MKWFaraphel/specific/_PATCH/files/Race/Common.d/Effect/RKRace.breff.json create mode 100644 Pack/MKWFaraphel/specific/_PATCH/files/Race/Common.d/balancing.json create mode 100644 Pack/MKWFaraphel/specific/_PATCH/files/Race/Common.d/itemBoxNiseRtpa.brres.json diff --git a/Pack/MKWFaraphel/macros.json b/Pack/MKWFaraphel/macros.json index e7fe6e3..502deac 100644 --- a/Pack/MKWFaraphel/macros.json +++ b/Pack/MKWFaraphel/macros.json @@ -11,6 +11,7 @@ "TRACK_TEXT_HIGHLIGHT_END": "bmg_color_raw('off')", "SETTINGS_MODE": "mod_config.specific_settings['mode'].value", + "SETTINGS_BALANCING": "mod_config.specific_settings['balancing'].value", "IF_NO_WARNING": "if getattr(track, 'warning', 0) == 0 else ''" } \ No newline at end of file diff --git a/Pack/MKWFaraphel/mod_config.json b/Pack/MKWFaraphel/mod_config.json index 6092a13..bd8a961 100644 --- a/Pack/MKWFaraphel/mod_config.json +++ b/Pack/MKWFaraphel/mod_config.json @@ -41,6 +41,18 @@ "type": "string", "default": "'v' + getattr(track, 'since_version', '') == mod_config.version", "preview": "track_selecting" + }, + "balancing": { + "text": { + "en": "Balancing *", + "fr": "Équilibrage *" + }, + "type": "choices", + "choices": [ + "Enabled", + "Disabled" + ], + "default": "Enabled" } }, "lpar_template": "{{ mode if (mode := ## SETTINGS_MODE ##) is not None else 'normal' }}.lpar", diff --git a/Pack/MKWFaraphel/specific/_PATCH/files/Race/Common.d/Effect/RKRace.breff.json b/Pack/MKWFaraphel/specific/_PATCH/files/Race/Common.d/Effect/RKRace.breff.json new file mode 100644 index 0000000..30e245c --- /dev/null +++ b/Pack/MKWFaraphel/specific/_PATCH/files/Race/Common.d/Effect/RKRace.breff.json @@ -0,0 +1,3 @@ +{ + "base": "files/Race/Common.d/balancing.json" +} \ No newline at end of file diff --git a/Pack/MKWFaraphel/specific/_PATCH/files/Race/Common.d/balancing.json b/Pack/MKWFaraphel/specific/_PATCH/files/Race/Common.d/balancing.json new file mode 100644 index 0000000..05f336e --- /dev/null +++ b/Pack/MKWFaraphel/specific/_PATCH/files/Race/Common.d/balancing.json @@ -0,0 +1,3 @@ +{ + "if": "## SETTINGS_BALANCING ## == 'Enabled'" +} \ No newline at end of file diff --git a/Pack/MKWFaraphel/specific/_PATCH/files/Race/Common.d/itemBoxNiseRtpa.brres.json b/Pack/MKWFaraphel/specific/_PATCH/files/Race/Common.d/itemBoxNiseRtpa.brres.json new file mode 100644 index 0000000..30e245c --- /dev/null +++ b/Pack/MKWFaraphel/specific/_PATCH/files/Race/Common.d/itemBoxNiseRtpa.brres.json @@ -0,0 +1,3 @@ +{ + "base": "files/Race/Common.d/balancing.json" +} \ No newline at end of file