Browse Source

Sauvegarde

master
jordan 2 weeks ago
parent
commit
e45128356a
  1. 5
      miniprojet.py

5
miniprojet.py

@ -52,4 +52,7 @@ class Personnage:
print(f"NOM: {self.nom} \n CATEGORIE : {self.cat} \n PV : {self.pdv} \n XP : {self.exp}") print(f"NOM: {self.nom} \n CATEGORIE : {self.cat} \n PV : {self.pdv} \n XP : {self.exp}")
def affiche_inventaire(self): def affiche_inventaire(self):
print(f"Dans votre sac vous avez : {self.inventaire}") print(f"Dans votre sac vous avez : {self.inventaire}")
# Partie Jeu

Loading…
Cancel
Save