mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
meritous: move completion_condition to set_rules (#4567)
This commit is contained in:
@@ -136,6 +136,12 @@ class MeritousWorld(World):
|
|||||||
|
|
||||||
def set_rules(self):
|
def set_rules(self):
|
||||||
set_rules(self.multiworld, self.player)
|
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):
|
def generate_basic(self):
|
||||||
self.multiworld.get_location("Place of Power", self.player).place_locked_item(
|
self.multiworld.get_location("Place of Power", self.player).place_locked_item(
|
||||||
@@ -166,13 +172,6 @@ class MeritousWorld(World):
|
|||||||
self.multiworld.get_location(boss, self.player).place_locked_item(
|
self.multiworld.get_location(boss, self.player).place_locked_item(
|
||||||
self.create_item("Evolution Trap"))
|
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:
|
def fill_slot_data(self) -> dict:
|
||||||
return {
|
return {
|
||||||
"goal": self.goal,
|
"goal": self.goal,
|
||||||
|
Reference in New Issue
Block a user