Browse Source

premier commit

master
Sacha 2 months ago
commit
41c218d52b
  1. 15
      miniP1.py

15
miniP1.py

@ -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…
Cancel
Save