@ -21,6 +21,7 @@ class Music(commands.Cog):
self.logger = logging.getLogger(__name__)
self.music = FuzzyMap(lambda m: m.is_released)
for m in asset_manager.music_master.values():
if not self.music.has_exact(f'{m.name} {m.special_unit_name}'):
self.music[f'{m.name} {m.special_unit_name}'] = m
difficulty_names = {
@ -19,6 +19,9 @@ class FuzzyMap:
def values(self):
return FuzzyDictValuesView(self)
def has_exact(self, key):
return romanize(key) in self._values
def __delitem__(self, key):
k = romanize(key)
self._values.__delitem__(k)