Merge branch 'Player' of https://github.com/Catobat/ALttPDoorRandomizer into Catobat-Player
This commit is contained in:
@@ -2032,6 +2032,7 @@ class Spoiler(object):
|
|||||||
'enemy_shuffle': self.world.enemy_shuffle,
|
'enemy_shuffle': self.world.enemy_shuffle,
|
||||||
'enemy_health': self.world.enemy_health,
|
'enemy_health': self.world.enemy_health,
|
||||||
'enemy_damage': self.world.enemy_damage,
|
'enemy_damage': self.world.enemy_damage,
|
||||||
|
'potshuffle': self.world.potshuffle,
|
||||||
'players': self.world.players,
|
'players': self.world.players,
|
||||||
'teams': self.world.teams,
|
'teams': self.world.teams,
|
||||||
'experimental': self.world.experimental,
|
'experimental': self.world.experimental,
|
||||||
@@ -2104,6 +2105,7 @@ class Spoiler(object):
|
|||||||
outfile.write('Enemy shuffle: %s\n' % self.metadata['enemy_shuffle'][player])
|
outfile.write('Enemy shuffle: %s\n' % self.metadata['enemy_shuffle'][player])
|
||||||
outfile.write('Enemy health: %s\n' % self.metadata['enemy_health'][player])
|
outfile.write('Enemy health: %s\n' % self.metadata['enemy_health'][player])
|
||||||
outfile.write('Enemy damage: %s\n' % self.metadata['enemy_damage'][player])
|
outfile.write('Enemy damage: %s\n' % self.metadata['enemy_damage'][player])
|
||||||
|
outfile.write('Pot shuffle: %s\n' % ('Yes' if self.metadata['potshuffle'][player] else 'No'))
|
||||||
outfile.write('Hints: %s\n' % ('Yes' if self.metadata['hints'][player] else 'No'))
|
outfile.write('Hints: %s\n' % ('Yes' if self.metadata['hints'][player] else 'No'))
|
||||||
outfile.write('Experimental: %s\n' % ('Yes' if self.metadata['experimental'][player] else 'No'))
|
outfile.write('Experimental: %s\n' % ('Yes' if self.metadata['experimental'][player] else 'No'))
|
||||||
outfile.write('Key Drops shuffled: %s\n' % ('Yes' if self.metadata['keydropshuffle'][player] else 'No'))
|
outfile.write('Key Drops shuffled: %s\n' % ('Yes' if self.metadata['keydropshuffle'][player] else 'No'))
|
||||||
|
|||||||
@@ -295,7 +295,7 @@ def shuffle_pots(world, player):
|
|||||||
elif old_pot.item == PotItem.Switch:
|
elif old_pot.item == PotItem.Switch:
|
||||||
available_pots = (pot for pot in new_pots if (pot.room == old_pot.room or pot.room in movable_switch_rooms[old_pot.room]) and not (pot.flags & PotFlags.NoSwitch))
|
available_pots = (pot for pot in new_pots if (pot.room == old_pot.room or pot.room in movable_switch_rooms[old_pot.room]) and not (pot.flags & PotFlags.NoSwitch))
|
||||||
elif old_pot.item == PotItem.Key:
|
elif old_pot.item == PotItem.Key:
|
||||||
if world.doorShuffle[player] == 'vanilla' and not world.retro[player] and not world.keydropshuffle[player] and world.logic != 'nologic':
|
if world.doorShuffle[player] == 'vanilla' and not world.retro[player] and not world.keydropshuffle[player] and world.logic[player] != 'nologic':
|
||||||
available_pots = (pot for pot in new_pots if pot.room not in invalid_key_rooms)
|
available_pots = (pot for pot in new_pots if pot.room not in invalid_key_rooms)
|
||||||
else:
|
else:
|
||||||
available_pots = new_pots
|
available_pots = new_pots
|
||||||
|
|||||||
5
Rom.py
5
Rom.py
@@ -970,7 +970,7 @@ def patch_rom(world, rom, player, team, enemized, is_mystery=False):
|
|||||||
#Work around for json patch ordering issues - write bow limit separately so that it is replaced in the patch
|
#Work around for json patch ordering issues - write bow limit separately so that it is replaced in the patch
|
||||||
rom.write_bytes(0x180098, [difficulty.progressive_bow_limit, overflow_replacement])
|
rom.write_bytes(0x180098, [difficulty.progressive_bow_limit, overflow_replacement])
|
||||||
|
|
||||||
if difficulty.progressive_bow_limit < 2 and world.swords == 'swordless':
|
if difficulty.progressive_bow_limit < 2 and world.swords[player] == 'swordless':
|
||||||
rom.write_bytes(0x180098, [2, overflow_replacement])
|
rom.write_bytes(0x180098, [2, overflow_replacement])
|
||||||
|
|
||||||
# set up game internal RNG seed
|
# set up game internal RNG seed
|
||||||
@@ -1314,9 +1314,6 @@ def patch_rom(world, rom, player, team, enemized, is_mystery=False):
|
|||||||
if item.name != 'Piece of Heart' or equip[0x36B] == 0:
|
if item.name != 'Piece of Heart' or equip[0x36B] == 0:
|
||||||
equip[0x36C] = min(equip[0x36C] + 0x08, 0xA0)
|
equip[0x36C] = min(equip[0x36C] + 0x08, 0xA0)
|
||||||
equip[0x36D] = min(equip[0x36D] + 0x08, 0xA0)
|
equip[0x36D] = min(equip[0x36D] + 0x08, 0xA0)
|
||||||
elif item.name == 'Pegasus Boots':
|
|
||||||
rom.write_byte(0x183015, 0x01)
|
|
||||||
ability_flags |= 0b00000100
|
|
||||||
else:
|
else:
|
||||||
raise RuntimeError(f'Unsupported item in starting equipment: {item.name}')
|
raise RuntimeError(f'Unsupported item in starting equipment: {item.name}')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user