projet jeu de role
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.

35 lines
573 B

import random
class Personnage :
def __init__ (self,nom) :
self.nom = nom
self.pdv = 20
self.exp = 1
self.cat = ["guerrier","magicien","voleur","elfe"]
self.inv = []
def jet_attaque (self):
return random.randint(1, 20)
if self.cat[2]:
mult = self.exp*3
if self.cat[3]:
mult = self.exp*8
else :
mult = self.exp*10
return somme = mult +
pers = Personnage("bob")