pokedex.visualiserPokemon(choix_pokemon) elif choix_menu == 4: joueur.menu() elif choix_menu == 5: action = int(input("Voulez-vous acheter (1) ou vendre ? (2)")) if action == 1: print("Que voulez-vous acheter ?") for item in shop.getListItem(): print( str(item.getId()) + " - " + item.getName() + " | " + str(item.getCost())) ids = int(input("Choisissez ce que vous voulez acheter")) item = shop.getById(ids) inventory.addItem(item) joueur.setCredit(joueur.getCredit() - item.getCost()) elif action == 2: print("Choissisez un objet à vendre : ") inventory.displayItem() ids = int(input("Quel objet voulez-vous vendre ?")) shop.sell(joueur, inventory.getById(ids)) inventory.delItem(inventory.getById(ids)) elif choix_menu == 6: print("Bye bye !") quitter = True elif choix_menu == 7: combat = Fight(joueur) combat.avantCombat() else: print("redemander")