remove empty shopslots from regions
This commit is contained in:
parent
6ab2caf37b
commit
f47fafe7e3
2
Main.py
2
Main.py
|
@ -256,6 +256,8 @@ def main(args, seed=None):
|
||||||
|
|
||||||
shop.push_inventory(slot_num, item_name, price, 1,
|
shop.push_inventory(slot_num, item_name, price, 1,
|
||||||
location.item.player if location.item.player != location.player else 0)
|
location.item.player if location.item.player != location.player else 0)
|
||||||
|
else:
|
||||||
|
shop.region.locations.remove(location)
|
||||||
|
|
||||||
logger.info('Patching ROM.')
|
logger.info('Patching ROM.')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue