added a settings to disable the balancing (will enable the cheat mode)

This commit is contained in:
Faraphel 2022-08-17 19:45:44 +02:00
parent ba4980e0b9
commit 23149d30da
5 changed files with 22 additions and 0 deletions

View file

@ -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 ''"
}

View file

@ -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",

View file

@ -0,0 +1,3 @@
{
"base": "files/Race/Common.d/balancing.json"
}

View file

@ -0,0 +1,3 @@
{
"if": "## SETTINGS_BALANCING ## == 'Enabled'"
}

View file

@ -0,0 +1,3 @@
{
"base": "files/Race/Common.d/balancing.json"
}