Kalyax
2 years ago
commit
cc4e7f6cb5
3 changed files with 35 additions and 0 deletions
@ -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 = |
Loading…
Reference in new issue