From 4ae885f392261b939e6f21b47d545f609c6e1965 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Wed, 27 Aug 2025 17:14:57 -0400 Subject: Set apworld victory condition --- apworld/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apworld/__init__.py') diff --git a/apworld/__init__.py b/apworld/__init__.py index 07e3982..14bb4bc 100644 --- a/apworld/__init__.py +++ b/apworld/__init__.py @@ -24,6 +24,8 @@ class Lingo2World(World): game = "Lingo 2" web = Lingo2WebWorld() + topology_present = True + options_dataclass = Lingo2Options options: Lingo2Options @@ -57,3 +59,6 @@ class Lingo2World(World): def create_item(self, name: str) -> Item: return Lingo2Item(name, ItemClassification.filler if name == "Nothing" else ItemClassification.progression, self.item_name_to_id.get(name), self.player) + + def set_rules(self): + self.multiworld.completion_condition[self.player] = lambda state: state.has("Victory", self.player) -- cgit 1.4.1