fix: cap fairy in different item pools should use the bee trap id
This commit is contained in:
6
Rom.py
6
Rom.py
@@ -5,6 +5,8 @@ import json
|
|||||||
import hashlib
|
import hashlib
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
import Items
|
||||||
import RaceRandom as random
|
import RaceRandom as random
|
||||||
import struct
|
import struct
|
||||||
import sys
|
import sys
|
||||||
@@ -1484,8 +1486,8 @@ def write_custom_shops(rom, world, player):
|
|||||||
loc_item = ItemFactory(item['item'], player)
|
loc_item = ItemFactory(item['item'], player)
|
||||||
if (not world.shopsanity[player] and shop.region.name == 'Capacity Upgrade'
|
if (not world.shopsanity[player] and shop.region.name == 'Capacity Upgrade'
|
||||||
and world.difficulty[player] != 'normal'):
|
and world.difficulty[player] != 'normal'):
|
||||||
# really should be 5A instead of B0 -- surprise!!!
|
# it's a BeeTrap -- surprise!!!
|
||||||
item_id, price, replace, replace_price, item_max = 0xB0, [0, 0], 0xFF, [0, 0], 1
|
item_id, price, replace, replace_price, item_max = Items.item_table['Bee Trap'][3], [0, 0], 0xFF, [0, 0], 1
|
||||||
else:
|
else:
|
||||||
item_id = loc_item.code
|
item_id = loc_item.code
|
||||||
price = int16_as_bytes(item['price'])
|
price = int16_as_bytes(item['price'])
|
||||||
|
|||||||
Reference in New Issue
Block a user