mirror of
				https://github.com/MarioSpore/Grinch-AP.git
				synced 2025-10-21 20:21:32 -06:00 
			
		
		
		
	LttP: fix shop inventory corruption in upgrade fairy
This commit is contained in:
		| @@ -460,10 +460,11 @@ def shuffle_shops(world, items, player: int): | ||||
|                     f"Not all upgrades put into Player{player}' item pool. Putting remaining items in Capacity Upgrade shop instead.") | ||||
|                 bombupgrades = sum(1 for item in new_items if 'Bomb Upgrade' in item) | ||||
|                 arrowupgrades = sum(1 for item in new_items if 'Arrow Upgrade' in item) | ||||
|                 slots = iter(range(2)) | ||||
|                 if bombupgrades: | ||||
|                     capacityshop.add_inventory(1, 'Bomb Upgrade (+5)', 100, bombupgrades) | ||||
|                     capacityshop.add_inventory(next(slots), 'Bomb Upgrade (+5)', 100, bombupgrades) | ||||
|                 if arrowupgrades: | ||||
|                     capacityshop.add_inventory(1, 'Arrow Upgrade (+5)', 100, arrowupgrades) | ||||
|                     capacityshop.add_inventory(next(slots), 'Arrow Upgrade (+5)', 100, arrowupgrades) | ||||
|         else: | ||||
|             for item in new_items: | ||||
|                 world.push_precollected(ItemFactory(item, player)) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Fabian Dill
					Fabian Dill