--- a/tests/test_admin_menu.py +++ b/tests/test_admin_menu.py @@ -10,7 +10,7 @@ layout = ROOT / 'addons/core/UI/layouts/ERR/AdminMenu.layout' keys = re.findall(r'"([A-Za-z]+)"', body(source, 'static array Keys(')) settings = re.findall(r'"([A-Za-z]+)"', body(BASE / 'addons/core/Scripts/Game/ERR/00_Core/ERR_Settings.c', 'static array Keys(')) -assert len(keys) == 14 and set(settings) - set(keys) == {"automaticConvoyEnabled", "heliTimerMinutes", "keepWeaponOnUnconscious"} +assert len(keys) == 14 and set(settings) - set(keys) == {"automaticConvoyEnabled", "heliTimerMinutes", "keepWeaponOnUnconscious", "automaticEquipmentChancePercent"} assert set(keys) <= set(settings) # New text-command setting does not alter the fixed native menu. # Native layouts place child widget declarations inside an anonymous Children # block. A missing brace can preserve most widget names yet prevent menu load. @@ -109,7 +109,7 @@ assert(Fields::Command("startTimeMinutes","14:25")=="mission time set 14:25"); assert(Fields::Command("startDateCode","2026-09-19")=="mission date set 2026-09-19"); assert(Fields::Command("weatherProfile","authored")=="mission weather set authored"); - for(string key:{"heliTimer","prisonDistance","stingerChance","mission abandon","","bad"}){ + for(string key:{"automaticEquipmentChancePercent","heliTimer","prisonDistance","stingerChance","mission abandon","","bad"}){ assert(Fields::Command(key,"1").empty());assert(!Fields::Available(key,true,true)); } for(string key:{"reportIntervalSeconds","supportSquadLimit","responseRadiusMetres","convoyCount","antiAirChancePercent","antiPersonnelMineChancePercent"}){