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