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
853 B
35 lines
853 B
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 =
|