experimental/ai_defence.py

Download file

Release 2026-11-04-r2 · SHA256 c7daf8c35885fc0ef844159ee825bfb75d43ada156d78e43c8f1244d4a477d30 · Click a line number for a direct link.

1"""Bounded weak-side AI coverage; guarded native wing-target hook, no rating boosts."""2ORIGIN = 0x2D840034def install(data, assemble, patch):5    code = assemble('ai_defence', ORIGIN)6    assert len(code) < 0xC00, 'AI code reaches private velocity-test region'7    patch(ORIGIN, b'\xff' * len(code), code)8    patch(0xD086, bytes.fromhex('41faff103438b74a'), bytes.fromhex('4eb9') + ORIGIN.to_bytes(4, 'big') + bytes.fromhex('4e71'))9