commit
dc81cc9163
|
@ -881,7 +881,7 @@ class Spoiler(object):
|
|||
for index, item in enumerate(shop.inventory):
|
||||
if item is None:
|
||||
continue
|
||||
shopdata['item_{}'.format(index)] = "{} ({})".format(item['item'], item['price']) if item['price'] else item['item']
|
||||
shopdata['item_{}'.format(index)] = "{} — {}".format(item['item'], item['price']) if item['price'] else item['item']
|
||||
self.shops.append(shopdata)
|
||||
|
||||
|
||||
|
@ -906,10 +906,11 @@ class Spoiler(object):
|
|||
def to_json(self):
|
||||
self.parse_data()
|
||||
out = OrderedDict()
|
||||
out['entrances'] = self.entrances.values()
|
||||
out['Entrances'] = list(self.entrances.values())
|
||||
out.update(self.locations)
|
||||
out['medallions'] = self.medallions
|
||||
out['shops'] = self.shops
|
||||
out['Special'] = self.medallions
|
||||
if self.shops:
|
||||
out['Shops'] = self.shops
|
||||
out['playthrough'] = self.playthrough
|
||||
out['paths'] = self.paths
|
||||
out['meta'] = self.metadata
|
||||
|
|
|
@ -305,9 +305,9 @@ def set_up_take_anys(world):
|
|||
sword = random.choice(swords)
|
||||
world.itempool.remove(sword)
|
||||
world.itempool.append(ItemFactory('Rupees (20)'))
|
||||
old_man_take_any.shop.add_inventory(0, sword.name, 0, 1, create_location=True)
|
||||
old_man_take_any.shop.add_inventory(0, sword.name, 0, 0, create_location=True)
|
||||
else:
|
||||
old_man_take_any.shop.add_inventory(0, 'Rupees (300)', 0, 1)
|
||||
old_man_take_any.shop.add_inventory(0, 'Rupees (300)', 0, 0)
|
||||
|
||||
for num in range(4):
|
||||
take_any = Region("Take-Any #{}".format(num+1), RegionType.Cave)
|
||||
|
@ -322,8 +322,8 @@ def set_up_take_anys(world):
|
|||
take_any.shop = Shop(take_any, room_id, ShopType.TakeAny, 0xE3, True)
|
||||
world.shops.append(take_any.shop)
|
||||
take_any.shop.active = True
|
||||
take_any.shop.add_inventory(0, 'Blue Potion', 0, 1)
|
||||
take_any.shop.add_inventory(1, 'Boss Heart Container', 0, 1)
|
||||
take_any.shop.add_inventory(0, 'Blue Potion', 0, 0)
|
||||
take_any.shop.add_inventory(1, 'Boss Heart Container', 0, 0)
|
||||
|
||||
world.intialize_regions()
|
||||
|
||||
|
|
12
Rom.py
12
Rom.py
|
@ -417,7 +417,7 @@ def patch_rom(world, rom, hashtable, beep='normal', color='red', sprite=None):
|
|||
# Rupoor negative value
|
||||
rom.write_int16_to_rom(0x180036, world.rupoor_cost)
|
||||
# Set stun items
|
||||
rom.write_byte(0x180180, 0x01) # Hookshot only
|
||||
rom.write_byte(0x180180, 0x02) # Hookshot only
|
||||
# Make silver arrows only usable against Ganon
|
||||
rom.write_byte(0x180181, 0x01)
|
||||
#Make Blue Shield more expensive
|
||||
|
@ -534,19 +534,17 @@ def patch_rom(world, rom, hashtable, beep='normal', color='red', sprite=None):
|
|||
# Make silver arrows freely usable
|
||||
rom.write_byte(0x180181, 0x00)
|
||||
#Set overflow items for progressive equipment
|
||||
if world.goal == 'triforcehunt':
|
||||
overflow_replacement = TRIFORCE_PIECE
|
||||
elif world.timer in ['timed', 'timed-countdown', 'timed-ohko']:
|
||||
if world.timer in ['timed', 'timed-countdown', 'timed-ohko']:
|
||||
overflow_replacement = GREEN_CLOCK
|
||||
else:
|
||||
overflow_replacement = GREEN_TWENTY_RUPEES
|
||||
|
||||
if world.difficulty in ['easy']:
|
||||
rom.write_byte(0x180181, 0x03) # auto equip silvers on pickup and at ganon
|
||||
rom.write_byte(0x180182, 0x03) # auto equip silvers on pickup and at ganon
|
||||
elif world.retro and world.difficulty in ['hard','expert', 'insane']: #FIXME: this is temporary for v29 baserom
|
||||
rom.write_byte(0x180181, 0x03) # auto equip silvers on pickup and at ganon
|
||||
rom.write_byte(0x180182, 0x03) # auto equip silvers on pickup and at ganon
|
||||
else:
|
||||
rom.write_byte(0x180181, 0x01) # auto equip silvers on pickup
|
||||
rom.write_byte(0x180182, 0x01) # auto equip silvers on pickup
|
||||
|
||||
#Byrna residual magic cost
|
||||
rom.write_bytes(0x45C42, [0x04, 0x02, 0x01])
|
||||
|
|
Loading…
Reference in New Issue