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.

17 lines
439 B

2 years ago
2 years ago
class Personnage:
def __init__(self, nom, cat):
2 years ago
self.nom = nom
2 years ago
self.categories = {
"guerrier" : ["sword", "potion"],
"magicien" : ["stick", "potion"],
"thief" : ["dagger", "potion"],
"elfe" : ["bow", "potion"]
}
self.pdv = 20
self.xp = 1
self.cat = cat
self.inv = self.categories[self.cat]
def jet_attaque(self):
pass