883 files, from working commit b1a079a. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
12 lines
582 B
Python
12 lines
582 B
Python
#!/usr/bin/env python3
|
|
"""Actual native source writer is the oracle for spell learn/remove/replace bodies."""
|
|
import struct
|
|
import subprocess
|
|
import sys
|
|
for kind in range(3):
|
|
for spell in (78,12282,12664):
|
|
wire=struct.pack('<BI',kind,spell)+(struct.pack('<I',12282) if kind==2 else b'')
|
|
def run(mode):return subprocess.run([sys.argv[1],mode],input=wire,capture_output=True,check=True).stdout
|
|
assert run('--spell-event')==run('--gateway-spell-event')
|
|
print('Nine learned, removed and superceded spell bodies match the native Forever source serializers.')
|