|
@ -1,3 +1,4 @@ |
|
|
|
|
|
import tkinter as tk |
|
|
from random import randint |
|
|
from random import randint |
|
|
class Personnage: |
|
|
class Personnage: |
|
|
def __init__ (self, nom, cat): |
|
|
def __init__ (self, nom, cat): |
|
@ -39,13 +40,12 @@ class Personnage: |
|
|
return self.exp * self.coefdef + defdé |
|
|
return self.exp * self.coefdef + defdé |
|
|
|
|
|
|
|
|
def change_pdv(self): |
|
|
def change_pdv(self): |
|
|
nb_pdv = 10 |
|
|
self.pdv += nb_pdv |
|
|
self.pdv = self.pdv + nb_pdv |
|
|
|
|
|
return self.pdv |
|
|
return self.pdv |
|
|
|
|
|
|
|
|
def change_exp(self): |
|
|
def change_exp(self): |
|
|
nb_exp = 1 |
|
|
nb_exp = 1 |
|
|
self.exp = self.exp + nb_exp |
|
|
self.exp += nb_exp |
|
|
return self.exp |
|
|
return self.exp |
|
|
|
|
|
|
|
|
def affiche_caracteristiques(self): |
|
|
def affiche_caracteristiques(self): |
|
|