Files
jeu_role/main.py
T
Arthur BARRAUX 530355ca0c début
2022-09-07 12:03:33 +02:00

17 lines
439 B
Python

class Personnage:
def __init__(self, nom, cat):
self.nom = nom
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