Shivers: Adds ixupi captures priority option (#4403)

This commit is contained in:
Kory Dondzila
2025-01-02 10:12:00 -05:00
committed by GitHub
parent 917335ec54
commit a7b483e4b7
3 changed files with 29 additions and 10 deletions

View File

@@ -16,7 +16,7 @@ class ShiversWeb(WebWorld):
"English",
"setup_en.md",
"setup/en",
["GodlFire", "Mathx2"]
["GodlFire", "Cynbel_Terreus"]
)]
option_groups = shivers_option_groups
@@ -41,6 +41,20 @@ class ShiversWorld(World):
def generate_early(self):
self.pot_completed_list = []
# Pot piece shuffle location:
if self.options.location_pot_pieces == "own_world":
self.options.local_items.value |= {name for name, data in item_table.items() if
data.type in [ItemType.POT, ItemType.POT_COMPLETE]}
elif self.options.location_pot_pieces == "different_world":
self.options.non_local_items.value |= {name for name, data in item_table.items() if
data.type in [ItemType.POT, ItemType.POT_COMPLETE]}
# Ixupi captures priority locations:
if self.options.ixupi_captures_priority:
self.options.priority_locations.value |= (
{name for name in self.location_names if name.startswith('Ixupi Captured')}
)
def create_item(self, name: str) -> Item:
data = item_table[name]
return ShiversItem(name, data.classification, data.code, self.player)
@@ -194,14 +208,6 @@ class ShiversWorld(World):
["Heal", "Easier Lyre"], weights=[95, 5], k=filler_needed
))
# Pot piece shuffle location:
if self.options.location_pot_pieces == "own_world":
self.options.local_items.value |= {name for name, data in item_table.items() if
data.type in [ItemType.POT, ItemType.POT_COMPLETE]}
elif self.options.location_pot_pieces == "different_world":
self.options.non_local_items.value |= {name for name, data in item_table.items() if
data.type in [ItemType.POT, ItemType.POT_COMPLETE]}
self.multiworld.itempool += item_pool
def pre_fill(self) -> None: