class Personnage : def __init__(self,nom,pdv,exp,cat,inventaire,coef) self.nom = nom self.pdv = 20 self.exp = 1 self.cat = cat self.coef = 0 self.inventaire = [] if self.cat == "voleur" self.inventaire = ["sac en toile" , "dague" ] self.pdv = 25 self.coef = 3 if self.cat == "sorciere" self.inventaire = ["pĂ´tion poison" , "baguette" ] self.pdv = 30 self.coef = 10 if self.cat == "chasseur" self.inventaire = ["epee" , "bouclie" , " fusarbalette "] self.pdv = 40 self.coef = 10 if self.cat == "mage" self.inventaire = ["potion de soin" , "baton" ] self.pdv = 10 self.coef = 5 def jet_attaque(self):