Browse Source

Sauvegarde

master
jordan 2 months ago
parent
commit
4876bad20c
  1. 6
      miniprojet.py

6
miniprojet.py

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

Loading…
Cancel
Save