Sacha
2 months ago
commit
41c218d52b
1 changed files with 15 additions and 0 deletions
@ -0,0 +1,15 @@ |
|||
from random import randint |
|||
class Presonnage: |
|||
def __init__(self,nom,cat) |
|||
self.nom = nom |
|||
self.pdv = 20 |
|||
self.exp = 1 |
|||
self.cat = cat |
|||
if self.cat == "guerrier": |
|||
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 == "guerrier": |
|||
self.inventaire = ["épée","potion"] |
Loading…
Reference in new issue