Skip to content

Commit

Permalink
meritous: move completion_condition to set_rules (#4567)
Browse files Browse the repository at this point in the history
  • Loading branch information
FelicitusNeko authored Jan 29, 2025
1 parent 738c21c commit 57afdfd
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions worlds/meritous/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@ def create_items(self):

def set_rules(self):
set_rules(self.multiworld, self.player)
if self.goal == 0:
self.multiworld.completion_condition[self.player] = lambda state: state.has_any(
["Victory", "Full Victory"], self.player)
else:
self.multiworld.completion_condition[self.player] = lambda state: state.has(
"Full Victory", self.player)

def generate_basic(self):
self.multiworld.get_location("Place of Power", self.player).place_locked_item(
Expand Down Expand Up @@ -166,13 +172,6 @@ def generate_basic(self):
self.multiworld.get_location(boss, self.player).place_locked_item(
self.create_item("Evolution Trap"))

if self.goal == 0:
self.multiworld.completion_condition[self.player] = lambda state: state.has_any(
["Victory", "Full Victory"], self.player)
else:
self.multiworld.completion_condition[self.player] = lambda state: state.has(
"Full Victory", self.player)

def fill_slot_data(self) -> dict:
return {
"goal": self.goal,
Expand Down

0 comments on commit 57afdfd

Please sign in to comment.