def make_magic_text(self):
        inventory = self.game_data['player inventory']
        allowed_item_list = ['Fire Blast', 'Cure']
        title = 'SELECT MAGIC SPELL'
        magic_text_list = [title]
        spell_list = [item for item in inventory if item in allowed_item_list]
        magic_text_list.extend(spell_list)
        magic_text_list.append('BACK')

        return magic_text_list
Make the text for when the player selects magic.
dataset/ETHPy150Open justinmeister/The-Stolen-Crown-RPG/data/battlegui.py/InfoBox.make_magic_text