Skip to content

Commit

Permalink
Muse Dash: Add 2023 Anniversary songs and remove a hidden song (Archi…
Browse files Browse the repository at this point in the history
…pelagoMW#1916)

* Remove CHAOS Glitch. Add test to check for removed songs.

* Add to game list

* Fix oversight with 0 difficulty songs. Fix naming of test.

* Add new songs and update other data.

* Fix accidental copy paste
  • Loading branch information
DeamonHunter authored Jun 30, 2023
1 parent 1d6345d commit b56da79
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ Currently, the following games are supported:
* Undertale
* Bumper Stickers
* Mega Man Battle Network 3: Blue Version
* Muse Dash

For setup and instructions check out our [tutorials page](https://archipelago.gg/tutorial/).
Downloads can be found at [Releases](https://github.com/ArchipelagoMW/Archipelago/releases), including compiled
Expand Down
7 changes: 5 additions & 2 deletions worlds/musedash/MuseDashCollection.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ class MuseDashCollections:
"MuseDash ka nanika hi",
"Rush-Hour",
"Find this Month's Featured Playlist",
"PeroPero in the Universe",
"CHAOS Glitch"
"PeroPero in the Universe"
]

album_items: Dict[str, AlbumData] = {}
Expand Down Expand Up @@ -129,6 +128,10 @@ def parse_song_difficulty(self, difficulty: str) -> Optional[int]:
if len(difficulty) <= 0 or difficulty == "?" or difficulty == "¿":
return None

# 0 is used as a filler and no songs actually have a 0 difficulty song.
if difficulty == "0":
return None

# Curse the 2023 april fools update. Used on 3rd Avenue.
if difficulty == "〇":
return 10
Expand Down
10 changes: 8 additions & 2 deletions worlds/musedash/MuseDashData.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ snooze|43-19|Just as Planned Plus|False|5|7|10|
Kuishinbo Hacker feat.Kuishinbo Akachan|43-20|Just as Planned Plus|True|5|7|9|
Inu no outa|43-21|Just as Planned Plus|True|3|5|7|
Prism Fountain|43-22|Just as Planned Plus|True|7|9|11|
Gospel|43-23|Just as Planned Plus|False|4|6|10|
Gospel|43-23|Just as Planned Plus|False|4|6|9|
East Ai Li Lovely|62-0|Happy Otaku Pack Vol.17|False|2|4|7|
Mori Umi no Fune|62-1|Happy Otaku Pack Vol.17|True|5|7|9|
Ooi|62-2|Happy Otaku Pack Vol.17|True|5|7|10|
Expand Down Expand Up @@ -449,4 +449,10 @@ Centennial Streamers High|63-1|MUSE RADIO FM104|False|4|7|9|
Love Patrol|63-2|MUSE RADIO FM104|True|3|5|7|
Mahorova|63-3|MUSE RADIO FM104|True|3|5|8|
Yoru no machi|63-4|MUSE RADIO FM104|True|1|4|7|
INTERNET YAMERO|63-5|MUSE RADIO FM104|True|6|8|10|
INTERNET YAMERO|63-5|MUSE RADIO FM104|True|6|8|10|
Abracadabra|43-24|Just as Planned Plus|False|6|8|10|
Squalldecimator feat. EZ-Ven|43-25|Just as Planned Plus|True|5|7|9|
Amateras Rhythm|43-26|Just as Planned Plus|True|6|8|11|
Record one's Dream|43-27|Just as Planned Plus|False|4|7|10|
Lunatic|43-28|Just as Planned Plus|True|5|8|10|
Jiumeng|43-29|Just as Planned Plus|True|3|6|8|
2 changes: 1 addition & 1 deletion worlds/musedash/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class MuseDashWorld(World):
game = "Muse Dash"
option_definitions = musedash_options
topology_present = False
data_version = 6
data_version = 7
web = MuseDashWebWorld()

music_sheet_name: str = "Music Sheet"
Expand Down
25 changes: 25 additions & 0 deletions worlds/musedash/test/TestRemovedSongs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
from . import MuseDashTestBase


class TestRemovedSongs(MuseDashTestBase):
options = {
"starting_song_count": 10,
"allow_just_as_planned_dlc_songs": True,
"additional_song_count": 500,
}

removed_songs = [
"CHAOS Glitch",
"FM 17314 SUGAR RADIO"
]

def test_remove_songs_are_not_generated(self) -> None:
# This test is done on a world where every song should be added.
muse_dash_world = self.multiworld.worlds[1]

for song_name in self.removed_songs:
assert song_name not in muse_dash_world.starting_songs, \
f"Song '{song_name}' was included into the starting songs when it shouldn't."

assert song_name not in muse_dash_world.included_songs, \
f"Song '{song_name}' was included into the included songs when it shouldn't."

0 comments on commit b56da79

Please sign in to comment.