You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
789 B

1 year ago
class Personnage :
def __init__(self,nom,pdv,exp,cat,inventaire,coef)
1 year ago
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):