diff options
Diffstat (limited to 'apworld/__init__.py')
-rw-r--r-- | apworld/__init__.py | 5 |
1 files changed, 5 insertions, 0 deletions
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): | |||
24 | game = "Lingo 2" | 24 | game = "Lingo 2" |
25 | web = Lingo2WebWorld() | 25 | web = Lingo2WebWorld() |
26 | 26 | ||
27 | topology_present = True | ||
28 | |||
27 | options_dataclass = Lingo2Options | 29 | options_dataclass = Lingo2Options |
28 | options: Lingo2Options | 30 | options: Lingo2Options |
29 | 31 | ||
@@ -57,3 +59,6 @@ class Lingo2World(World): | |||
57 | def create_item(self, name: str) -> Item: | 59 | def create_item(self, name: str) -> Item: |
58 | return Lingo2Item(name, ItemClassification.filler if name == "Nothing" else ItemClassification.progression, | 60 | return Lingo2Item(name, ItemClassification.filler if name == "Nothing" else ItemClassification.progression, |
59 | self.item_name_to_id.get(name), self.player) | 61 | self.item_name_to_id.get(name), self.player) |
62 | |||
63 | def set_rules(self): | ||
64 | self.multiworld.completion_condition[self.player] = lambda state: state.has("Victory", self.player) | ||