Browse Source

Initial commit

old
Kalyax 2 years ago
commit
cc4e7f6cb5
  1. 0
      Inventaire.py
  2. 35
      Personnage.py
  3. 0
      main.py

0
Inventaire.py

35
Personnage.py

@ -0,0 +1,35 @@
from enum import Enum
class StatsSet():
#HP, ATK, DEF%, CRIT, CRITRATE%
def __init__(self, hp, atk, defP, crit, critrateP):
self.hp = hp
self.atk = atk
self.defP = defP
self.crit = crit
self.critrateP = critrateP
class ClassType(Enum):
#HP, ATK, DEF%, CRIT, CRITRATE%
SWORDMAN = StatsSet(20, 10, 12, 5, 10)
MAGE = StatsSet(16, 12, 6, 8, 15)
#class ElementType(Enum):
#TODO: DEF% contre : water, fire, electro, ice, geo
#WATER = ()
#FIRE = ()
#ELECTRO = ()
#ICE = ()
#GEO = ()
class Personnage:
def __init__(self, nom, class_type) -> None:
self.nom = nom
self.class_type = class_type
self.xp = 1
self.stats = StatsSet(0, 0, 0, 0, 0)
self.current_hp = self.class_type.hp
#self.inventaire =
#self.element =

0
main.py

Loading…
Cancel
Save