Add optional shoreline Motorboats and recommended addon controls
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-11-07 00:32:01 +01:00
parent a7452f8be6
commit 161100cf08
31 changed files with 624 additions and 56 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ def navigation(source, tokens):
if (len(members) != len(set(members)) or set(members) != keys.keys()
or len(set(names)) != len(names)
or any(not re.fullmatch(r'[A-Za-z][A-Za-z0-9]*', n) for n in names)
or any(not 1 <= len(g['pages']) <= 8 for g in groups)):
or any(not 1 <= len(g['pages']) <= 9 for g in groups)):
raise ValueError('Every page must belong to exactly one valid sidebar group')
for page in pages:
if not isinstance(page['label'], str) or any(c in page['label'] for c in '\n\r"\\'):
+2
View File
@@ -34,6 +34,8 @@ def check():
subprocess.run([sys.executable,str(ROOT/'tests/test_rescue_recovery.py')],check=True)
subprocess.run([sys.executable,str(ROOT/'tests/test_casualty_fleet.py')],check=True)
subprocess.run([sys.executable,str(ROOT/'tests/test_plane_boarding.py')],check=True)
subprocess.run([sys.executable,str(ROOT/'tests/test_shore_map.py')],check=True)
subprocess.run([sys.executable,str(ROOT/'tests/test_shore_boats.py')],check=True)
subprocess.run([sys.executable,str(ROOT/'tests/test_crash_sites_lifecycle.py')],check=True)
subprocess.run([sys.executable,str(ROOT/'tests/test_crash_loot_plan.py')],check=True)
subprocess.run([sys.executable,str(ROOT/'tests/test_crash_random_loot.py')],check=True)
+4
View File
@@ -3,6 +3,10 @@
import argparse,json,os,tempfile,sys
from pathlib import Path
SCHEMA={
'shoreBoatCount':(6,0,16),
'shoreBoatChancePercent':(20,0,100),
'shoreBoatCrossingChancePercent':(70,0,100),
'crashLootMode':(1,0,1),
'crashSiteCount':(3,0,12),
'crashHelicopterChancePercent':(50,0,100),