KDL3, MM2: set goal condition before generate basic (#5382)

* move goal kdl3

* mm2

* missed the singular important line
This commit is contained in:
Silvris
2025-09-30 11:30:26 -05:00
committed by GitHub
parent d9955d624b
commit a30b43821f
3 changed files with 11 additions and 10 deletions

View File

@@ -133,6 +133,9 @@ class MM2World(World):
Consumables.option_all):
stage.add_locations(energy_pickups[region], MM2Location)
self.multiworld.regions.append(stage)
goal_location = self.get_location(dr_wily)
goal_location.place_locked_item(MM2Item("Victory", ItemClassification.progression, None, self.player))
self.multiworld.completion_condition[self.player] = lambda state: state.has("Victory", self.player)
def create_item(self, name: str) -> MM2Item:
item = item_table[name]
@@ -189,11 +192,6 @@ class MM2World(World):
f"Incompatible starting Robot Master, changing to "
f"{self.options.starting_robot_master.current_key.replace('_', ' ').title()}")
def generate_basic(self) -> None:
goal_location = self.get_location(dr_wily)
goal_location.place_locked_item(MM2Item("Victory", ItemClassification.progression, None, self.player))
self.multiworld.completion_condition[self.player] = lambda state: state.has("Victory", self.player)
def fill_hook(self,
progitempool: List["Item"],
usefulitempool: List["Item"],