SMW: Prevent Killing Bowser on Yoshi Egg Hunt (#1241)
* Make Bowser unkillable on Egg Hunt Changed a location name.
This commit is contained in:
parent
edd1fff4b7
commit
1cd1bfea4d
|
@ -118,7 +118,7 @@ chocolate_island_5_dragon = "Chocolate Island 5 - Dragon Coins"
|
||||||
chocolate_ghost_house_exit_1 = "Choco-Ghost House - Normal Exit"
|
chocolate_ghost_house_exit_1 = "Choco-Ghost House - Normal Exit"
|
||||||
chocolate_secret_exit_1 = "Chocolate Secret - Normal Exit"
|
chocolate_secret_exit_1 = "Chocolate Secret - Normal Exit"
|
||||||
chocolate_fortress = "Chocolate Fortress - 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_castle = "#6 Wendy's Castle - Normal Exit"
|
||||||
chocolate_koopaling = "#6 Wendy's Castle - Boss"
|
chocolate_koopaling = "#6 Wendy's Castle - Boss"
|
||||||
|
|
||||||
|
|
|
@ -824,7 +824,10 @@ def patch_rom(world, rom, player, active_level_dict):
|
||||||
|
|
||||||
# Store all relevant option results in ROM
|
# Store all relevant option results in ROM
|
||||||
rom.write_byte(0x01BFA0, world.goal[player].value)
|
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(
|
required_yoshi_eggs = max(math.floor(
|
||||||
world.number_of_yoshi_eggs[player].value * (world.percentage_of_yoshi_eggs[player].value / 100.0)), 1)
|
world.number_of_yoshi_eggs[player].value * (world.percentage_of_yoshi_eggs[player].value / 100.0)), 1)
|
||||||
rom.write_byte(0x01BFA2, required_yoshi_eggs)
|
rom.write_byte(0x01BFA2, required_yoshi_eggs)
|
||||||
|
|
|
@ -41,7 +41,7 @@ class SMWWorld(World):
|
||||||
game: str = "Super Mario World"
|
game: str = "Super Mario World"
|
||||||
option_definitions = smw_options
|
option_definitions = smw_options
|
||||||
topology_present = False
|
topology_present = False
|
||||||
data_version = 1
|
data_version = 2
|
||||||
required_client_version = (0, 3, 5)
|
required_client_version = (0, 3, 5)
|
||||||
|
|
||||||
item_name_to_id = {name: data.code for name, data in item_table.items()}
|
item_name_to_id = {name: data.code for name, data in item_table.items()}
|
||||||
|
|
Loading…
Reference in New Issue