Add fastrom disable option
This commit is contained in:
@@ -85,6 +85,7 @@ class World(object):
|
||||
self.lamps_needed_for_dark_rooms = 1
|
||||
self.pseudoboots = {player: False for player in range(1, players + 1)}
|
||||
self.item_counter_hud = {player: False for player in range(1, players + 1)}
|
||||
self.fastrom = True
|
||||
|
||||
def intialize_regions(self):
|
||||
for region in self.regions:
|
||||
|
||||
@@ -248,6 +248,10 @@ def start():
|
||||
Displays a (number of items collected) / (total items available) counter
|
||||
on the HUD.
|
||||
''', action='store_true')
|
||||
parser.add_argument('--nofastrom', default=False, help='''\
|
||||
Displays a (number of items collected) / (total items available) counter
|
||||
on the HUD.
|
||||
''', action='store_true')
|
||||
parser.add_argument('--suppress_rom', help='Do not create an output rom file.', action='store_true')
|
||||
parser.add_argument('--gui', help='Launch the GUI', action='store_true')
|
||||
parser.add_argument('--jsonout', action='store_true', help='''\
|
||||
|
||||
2
Main.py
2
Main.py
@@ -42,6 +42,8 @@ def main(args, seed=None):
|
||||
raise Exception("Goals requiring all items must use 'locations' accessibility")
|
||||
if args.huditemcounter:
|
||||
world.item_counter_hud = {player: True for player in range(1, world.players + 1)}
|
||||
if args.nofastrom:
|
||||
world.fastrom = False
|
||||
|
||||
world.crystals_needed_for_ganon = random.randint(0, 7) if args.crystals_ganon == 'random' else int(args.crystals_ganon)
|
||||
world.crystals_needed_for_gt = random.randint(0, 7) if args.crystals_gt == 'random' else int(args.crystals_gt)
|
||||
|
||||
4
Rom.py
4
Rom.py
@@ -19,7 +19,7 @@ from EntranceShuffle import door_addresses
|
||||
|
||||
|
||||
JAP10HASH = '03a63945398191337e896e5771f77173'
|
||||
RANDOMIZERBASEHASH = 'c9b88e9a10f9f0c9ad732962825cb1d8'
|
||||
RANDOMIZERBASEHASH = 'bcbe116984dbfe4ea90a2dda17755f60'
|
||||
|
||||
|
||||
class JsonRom(object):
|
||||
@@ -1048,6 +1048,8 @@ def patch_rom(world, player, rom):
|
||||
else:
|
||||
rom.write_byte(0x180039, 0x00)
|
||||
|
||||
rom.write_byte(0x187032, 0x01 if world.fastrom else 0x00)
|
||||
|
||||
write_strings(rom, world, player)
|
||||
|
||||
# write initial sram
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user