From 239cd63658fcefcdf8531f8fa2fab2d5f1209d81 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Mon, 6 Oct 2025 14:22:10 -0400 Subject: Error when no progression --- apworld/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) 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 from typing import ClassVar from BaseClasses import ItemClassification, Item, Tutorial +from Options import OptionError from settings import Group, UserFilePath from worlds.AutoWorld import WebWorld, World from .items import Lingo2Item, ANTI_COLLECTABLE_TRAPS @@ -109,6 +110,11 @@ class Lingo2World(World): for i in range(0, item_difference): pool.append(self.create_item(self.get_filler_item_name())) + if not any(ItemClassification.progression in item.classification for item in pool): + raise OptionError(f"Lingo 2 player {self.player} has no progression items. Please enable at least one " + f"option that would add progression gating to your world, such as Shuffle Doors or " + f"Shuffle Letters.") + self.multiworld.itempool += pool def create_item(self, name: str) -> Item: -- cgit 1.4.1