diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-08-17 15:32:53 -0400 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2025-08-17 15:32:53 -0400 |
| commit | 299ba7c4f7938dd8cbb38e51c11987b2ebe286c5 (patch) | |
| tree | b9eda0cea1d0b63bf8a5edff93ef7a5fb384a9ba /apworld/__init__.py | |
| parent | e99f7bf302b528242a99b500f6c5b2423daaefd6 (diff) | |
| download | lingo2-archipelago-299ba7c4f7938dd8cbb38e51c11987b2ebe286c5.tar.gz lingo2-archipelago-299ba7c4f7938dd8cbb38e51c11987b2ebe286c5.tar.bz2 lingo2-archipelago-299ba7c4f7938dd8cbb38e51c11987b2ebe286c5.zip | |
Fill the item pool with "Nothing"s
Diffstat (limited to 'apworld/__init__.py')
| -rw-r--r-- | apworld/__init__.py | 9 |
1 files changed, 8 insertions, 1 deletions
| diff --git a/apworld/__init__.py b/apworld/__init__.py index 20c1454..07e3982 100644 --- a/apworld/__init__.py +++ b/apworld/__init__.py | |||
| @@ -46,7 +46,14 @@ class Lingo2World(World): | |||
| 46 | def create_items(self): | 46 | def create_items(self): |
| 47 | pool = [self.create_item(name) for name in self.player_logic.real_items] | 47 | pool = [self.create_item(name) for name in self.player_logic.real_items] |
| 48 | 48 | ||
| 49 | total_locations = sum(len(locs) for locs in self.player_logic.locations_by_room.values()) | ||
| 50 | |||
| 51 | item_difference = total_locations - len(pool) | ||
| 52 | for i in range(0, item_difference): | ||
| 53 | pool.append(self.create_item("Nothing")) | ||
| 54 | |||
| 49 | self.multiworld.itempool += pool | 55 | self.multiworld.itempool += pool |
| 50 | 56 | ||
| 51 | def create_item(self, name: str) -> Item: | 57 | def create_item(self, name: str) -> Item: |
| 52 | return Lingo2Item(name, ItemClassification.progression, self.item_name_to_id.get(name), self.player) | 58 | return Lingo2Item(name, ItemClassification.filler if name == "Nothing" else ItemClassification.progression, |
| 59 | self.item_name_to_id.get(name), self.player) | ||
