Fix shop items having inconsistent save context information, causing shops to not be sent correctly if fewer than 4 items in any shop

This commit is contained in:
espeon65536 2021-09-10 00:32:44 -05:00 committed by Fabian Dill
parent 45266caa8d
commit 2d27665369
1 changed files with 1 additions and 0 deletions

View File

@ -2125,6 +2125,7 @@ def place_shop_items(rom, world, shop_items, messages, locations, init_shop_id=F
update_message_by_id(messages, shop_item.description_message, description_text, 0x03)
update_message_by_id(messages, shop_item.purchase_message, purchase_text, 0x03)
if any(filter(lambda c: c in location.name, {'5', '6', '7', '8'})):
world.current_shop_id += 1
return shop_objs