Compare commits
2 Commits
e9536e8b46
...
035e9f626f
Author | SHA1 | Date |
---|---|---|
alexi.forestier | 035e9f626f | 1 year ago |
alexi.forestier | ff41e29506 | 1 year ago |
1 changed files with 34 additions and 0 deletions
@ -0,0 +1,34 @@ |
|||||
|
class Personnage: |
||||
|
def init__(self, nom, cat): |
||||
|
self.nom = nom |
||||
|
self.cat = cat |
||||
|
self.pdv = 0 |
||||
|
self.exp = 1 |
||||
|
self.coef = 0 |
||||
|
self.inventaire = [] |
||||
|
if self.cat == "Géant": |
||||
|
self.inventaire = ["3 Rochers géants", "Grosse potion"] |
||||
|
self.pdv = 100 |
||||
|
self.coef = 6 |
||||
|
elif self.cat == "Fée": |
||||
|
self.inventaire = ["Arc féerique", "Potion"] |
||||
|
self.pdv = 70 |
||||
|
self.coef = 9 |
||||
|
elif self.cat == "Démon": |
||||
|
self.inventaire = ["épée malveillante", "Potion"] |
||||
|
self.pdv = 80 |
||||
|
self.coef = 8 |
||||
|
elif self.cat == "Déesee": |
||||
|
self.inventaire = ["Bâton miraculeux", "Potion"] |
||||
|
self.pdv = 90 |
||||
|
self.coef = 7 |
||||
|
|
||||
|
def jet_attaque(self): |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
Loading…
Reference in new issue