about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2025-10-06 14:22:10 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2025-10-06 14:22:10 -0400
commit239cd63658fcefcdf8531f8fa2fab2d5f1209d81 (patch)
tree2fd06de6e4ae0ee20374f5115f0791324a26ba5b
parent2b0b477dcd7a12202ae13d24cde4ba3171ee7edf (diff)
downloadlingo2-archipelago-239cd63658fcefcdf8531f8fa2fab2d5f1209d81.tar.gz
lingo2-archipelago-239cd63658fcefcdf8531f8fa2fab2d5f1209d81.tar.bz2
lingo2-archipelago-239cd63658fcefcdf8531f8fa2fab2d5f1209d81.zip
Error when no progression HEAD main
-rw-r--r--apworld/__init__.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/apworld/__init__.py b/apworld/__init__.py index 9e445c7..57e3d9b 100644 --- a/apworld/__init__.py +++ b/apworld/__init__.py
@@ -4,6 +4,7 @@ Archipelago init file for Lingo 2
4from typing import ClassVar 4from typing import ClassVar
5 5
6from BaseClasses import ItemClassification, Item, Tutorial 6from BaseClasses import ItemClassification, Item, Tutorial
7from Options import OptionError
7from settings import Group, UserFilePath 8from settings import Group, UserFilePath
8from worlds.AutoWorld import WebWorld, World 9from worlds.AutoWorld import WebWorld, World
9from .items import Lingo2Item, ANTI_COLLECTABLE_TRAPS 10from .items import Lingo2Item, ANTI_COLLECTABLE_TRAPS
@@ -109,6 +110,11 @@ class Lingo2World(World):
109 for i in range(0, item_difference): 110 for i in range(0, item_difference):
110 pool.append(self.create_item(self.get_filler_item_name())) 111 pool.append(self.create_item(self.get_filler_item_name()))
111 112
113 if not any(ItemClassification.progression in item.classification for item in pool):
114 raise OptionError(f"Lingo 2 player {self.player} has no progression items. Please enable at least one "
115 f"option that would add progression gating to your world, such as Shuffle Doors or "
116 f"Shuffle Letters.")
117
112 self.multiworld.itempool += pool 118 self.multiworld.itempool += pool
113 119
114 def create_item(self, name: str) -> Item: 120 def create_item(self, name: str) -> Item: