Muse Dash: Change Data storage from a .txt file to a .py file and Filter Webhost Song Lists correctly (#4234)

This commit is contained in:
Justus Lind
2025-01-13 03:59:16 +10:00
committed by GitHub
parent 9928639ce2
commit 3f935aac13
7 changed files with 656 additions and 705 deletions

View File

@@ -63,6 +63,11 @@ class MuseDashWorld(World):
item_name_to_id = {name: code for name, code in md_collection.item_names_to_id.items()}
location_name_to_id = {name: code for name, code in md_collection.location_names_to_id.items()}
item_name_groups = {
"Songs": {name for name in md_collection.song_items.keys()},
"Filler Items": {name for name in md_collection.filler_items.keys()},
"Traps": {name for name in md_collection.trap_items.keys()}
}
# Working Data
victory_song_name: str = ""
@@ -179,10 +184,6 @@ class MuseDashWorld(World):
if trap:
return MuseDashFixedItem(name, ItemClassification.trap, trap, self.player)
album = self.md_collection.album_items.get(name)
if album:
return MuseDashSongItem(name, self.player, album)
song = self.md_collection.song_items[name]
return MuseDashSongItem(name, self.player, song)