|
@ -7,12 +7,25 @@ class Personnage : |
|
|
self.exp = 1 |
|
|
self.exp = 1 |
|
|
self.cat = cat |
|
|
self.cat = cat |
|
|
if self.cat = "guerrier": |
|
|
if self.cat = "guerrier": |
|
|
self.inventaire = ["",""] |
|
|
self.inventaire = ["épée","potion"] |
|
|
|
|
|
if self.cat = "magicien": |
|
|
|
|
|
self.inventaire = ["bâton","potion"] |
|
|
|
|
|
if self.cat = "voleur": |
|
|
|
|
|
self.inventaire = ["dague","potion"] |
|
|
|
|
|
if self.cat = "elfe": |
|
|
|
|
|
self.inventaire = ["arc","potion"] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def jet_attaque(self): |
|
|
def jet_attaque(self): |
|
|
pass |
|
|
lancé dé = randit(1, 20) |
|
|
|
|
|
"""revoie le jet d'attaque""" |
|
|
|
|
|
return = self.attaque |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def jet_defence(self): |
|
|
def jet_defence(self): |
|
|
pass |
|
|
pass |
|
|
def change_pdv(self): |
|
|
def change_pdv(self): |
|
|