Add flag to only check for beatable, not fully clearable configurations (only works with restrictive algorithm for now).

This commit is contained in:
LLCoolDave
2017-06-23 22:15:29 +02:00
parent 350c688d93
commit 28a2e3cf2d
3 changed files with 49 additions and 23 deletions

2
Rom.py
View File

@@ -292,7 +292,7 @@ def patch_rom(world, rom, hashtable, quickswap=False, beep='normal', sprite=None
# set rom name
# 21 bytes
write_bytes(rom, 0x7FC0, bytearray('ER_030_%09d_' % world.seed, 'utf8') + world.option_identifier.to_bytes(4, 'big'))
write_bytes(rom, 0x7FC0, bytearray('ER_040_%09d_' % world.seed, 'utf8') + world.option_identifier.to_bytes(4, 'big'))
# set heart beep rate
write_byte(rom, 0x180033, {'off': 0x00, 'half': 0x40, 'quarter': 0x80, 'normal': 0x20}[beep])