"""Use the installed library bookshelf sequence through ordinary interactions.""" import os,subprocess,sys from pathlib import Path R=Path(__file__).resolve().parents[1] os.environ.update(REBORN_FAST_KEYS='1',REBORN_COORD_CACHE='1',REBORN_ROUTE_CHUNK='84') def run(s,*a): print('LIBRARY',s,*a,flush=True);subprocess.run([sys.executable,str(R/'scripts'/f'{s}.py'),*map(str,a)],check=True) run('eventq',548,3,'enter') for e in [6,7,9,10,11,12]:run('eventq',549,e,'talk') run('checkpoint','Lugia340-LibraryPuzzle')