|
@ -11,5 +11,26 @@ class Presonnage: |
|
|
self.inventaire = ["bâton","potion"] |
|
|
self.inventaire = ["bâton","potion"] |
|
|
if self.cat == "voleur": |
|
|
if self.cat == "voleur": |
|
|
self.inventaire = ["dague","potion"] |
|
|
self.inventaire = ["dague","potion"] |
|
|
|
|
|
if self.cat == "elfe": |
|
|
|
|
|
self.inventaire = ["arc","potion"] |
|
|
|
|
|
|
|
|
|
|
|
def jet_attaque (self): |
|
|
if self.cat == "guerrier": |
|
|
if self.cat == "guerrier": |
|
|
self.inventaire = ["épée","potion"] |
|
|
return = randint(1,20) + self.exp*10 |
|
|
|
|
|
if self.cat == "magicien": |
|
|
|
|
|
return = randint(1,20) + self.exp*10 |
|
|
|
|
|
if self.cat == "voleur": |
|
|
|
|
|
return = randint(1,20) + self.exp*3 |
|
|
|
|
|
if self.cat == "elfe": |
|
|
|
|
|
return = randint(1,20) + self.exp*8 |
|
|
|
|
|
|
|
|
|
|
|
def jet_defense (self): |
|
|
|
|
|
if self.cat == "guerrier": |
|
|
|
|
|
return = randint(1,20) + self.exp*8 |
|
|
|
|
|
if self.cat == "magicien": |
|
|
|
|
|
return = randint(1,20) + self.exp*7 |
|
|
|
|
|
if self.cat == "voleur": |
|
|
|
|
|
return = randint(1,20) + self.exp*9 |
|
|
|
|
|
if self.cat == "elfe": |
|
|
|
|
|
return = randint(1,20) + self.exp*10 |
|
|
|
|
|
|