Exemplo n.º 1
0
    def run(self):
        print("Creating an inventory!")

        inventories = Inventory.get_for_player(self.connection,
                                               self.player.username)
        option, inventory = self.prompt_for_inventory_option(inventories)

        if option == 'rename':
            self.rename_inventory(inventory)
        else:
            if option == 'create':
                inventory = self.create_new_inventory()

            self.inventory_modify_menu(inventory)