"""Normal-controls Mega Ring errands, ending before any unreviewed battle.""" import subprocess,sys,os,json from pathlib import Path R=Path(__file__).resolve().parents[1] def run(n,*a): e=dict(os.environ,REBORN_COORD_CACHE='1',REBORN_ROUTE_CHUNK='84') if n!='fly_to':e['REBORN_FAST_KEYS']='1' else:e.pop('REBORN_FAST_KEYS',None) print('STAGE',n,*a,flush=True);subprocess.run([sys.executable,str(R/'scripts'/f'{n}.py'),*map(str,a)],env=e,check=True) run('eventq',539,13,'enter');run('fly_to',524);run('eventq',524,48,'enter');run('q','612,3,7')