SMW: Prevent Killing Bowser on Yoshi Egg Hunt (#1241)

* Make Bowser unkillable on Egg Hunt

Changed a location name.
This commit is contained in:
PoryGone 2022-11-16 14:20:55 -05:00 committed by GitHub
parent edd1fff4b7
commit 1cd1bfea4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View File

@ -118,7 +118,7 @@ chocolate_island_5_dragon = "Chocolate Island 5 - Dragon Coins"
chocolate_ghost_house_exit_1 = "Choco-Ghost House - Normal Exit"
chocolate_secret_exit_1 = "Chocolate Secret - Normal Exit"
chocolate_fortress = "Chocolate Fortress - Normal Exit"
chocolate_reznor = "Chocolate Fortress Defeat"
chocolate_reznor = "Chocolate Fortress - Boss"
chocolate_castle = "#6 Wendy's Castle - Normal Exit"
chocolate_koopaling = "#6 Wendy's Castle - Boss"

View File

@ -824,7 +824,10 @@ def patch_rom(world, rom, player, active_level_dict):
# Store all relevant option results in ROM
rom.write_byte(0x01BFA0, world.goal[player].value)
rom.write_byte(0x01BFA1, world.bosses_required[player].value)
if world.goal[player].value == 0:
rom.write_byte(0x01BFA1, world.bosses_required[player].value)
else:
rom.write_byte(0x01BFA1, 0x7F)
required_yoshi_eggs = max(math.floor(
world.number_of_yoshi_eggs[player].value * (world.percentage_of_yoshi_eggs[player].value / 100.0)), 1)
rom.write_byte(0x01BFA2, required_yoshi_eggs)

View File

@ -41,7 +41,7 @@ class SMWWorld(World):
game: str = "Super Mario World"
option_definitions = smw_options
topology_present = False
data_version = 1
data_version = 2
required_client_version = (0, 3, 5)
item_name_to_id = {name: data.code for name, data in item_table.items()}