def set_music(self):
        """
        Set music based on name.
        """
        music_dict = {c.TOWN: ('town_theme', .4),
                      c.OVERWORLD: ('overworld', .4),
                      c.CASTLE: ('town_theme', .4),
                      c.DUNGEON: ('dungeon_theme', .4),
                      c.DUNGEON2: ('dungeon_theme', .4),
                      c.DUNGEON3: ('dungeon_theme', .4),
                      c.DUNGEON4: ('dungeon_theme', .4),
                      c.DUNGEON5: ('dungeon_theme', .4),
                      c.HOUSE: ('pleasant_creek', .1),
                      c.BROTHER_HOUSE: ('pleasant_creek', .1)}

        if self.game_data['crown quest'] and (self.name == c.TOWN or self.name == c.CASTLE):
            self.music_title = 'kings_theme'
            return setup.MUSIC['kings_theme'], .4
        elif music_dict in self.name:
            music = music_dict[self.name][0]
            volume = music_dict[self.name][1]
            self.music_title = music
            return setup.MUSIC[music], volume
        else:
            return None, None
dataset/ETHPy150Open justinmeister/The-Stolen-Crown-RPG/data/states/levels.py/LevelState.set_music/swapped operands of `in`