From 322feb37f0668e6cb230aa8b97881aeca2398aae Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Mon, 11 Jan 2021 04:06:25 +0100 Subject: [PATCH] remove removed shop locations from relevant caches --- Main.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Main.py b/Main.py index 56c24878..583a5d0a 100644 --- a/Main.py +++ b/Main.py @@ -263,6 +263,11 @@ def main(args, seed=None): logger.info('Patching ROM.') + # remove locations that may no longer exist from caches, by flushing them entirely + if shop_slots: + world.clear_location_cache() + world._location_cache = {} + outfilebase = 'BM_%s' % (args.outputname if args.outputname else world.seed) rom_names = [] @@ -333,7 +338,7 @@ def main(args, seed=None): "progressive": world.progressive, # A "hints": 'True' if world.hints[player] else 'False' # B } - # 0 1 2 3 4 5 6 7 8 9 A B + # 0 1 2 3 4 5 6 7 8 9 A B outfilesuffix = ('_%s_%s-%s-%s-%s%s_%s-%s%s%s%s%s' % ( # 0 1 2 3 4 5 6 7 8 9 A B C # _noglitches_normal-normal-open-ganon-ohko_simple-balanced-keysanity-retro-prog_random-nohints