|
@ -19,7 +19,7 @@ class Personnage: |
|
|
self.inventaire = ["épée malveillante", "Potion"] |
|
|
self.inventaire = ["épée malveillante", "Potion"] |
|
|
self.coefAtk = 8 |
|
|
self.coefAtk = 8 |
|
|
self.coefDef = 8 |
|
|
self.coefDef = 8 |
|
|
elif self.cat == "Déesee": |
|
|
elif self.cat == "Déesse": |
|
|
self.inventaire = ["Bâton miraculeux", "Potion"] |
|
|
self.inventaire = ["Bâton miraculeux", "Potion"] |
|
|
self.coefAtk = 7 |
|
|
self.coefAtk = 7 |
|
|
self.coefDef = 9 |
|
|
self.coefDef = 9 |
|
@ -138,17 +138,13 @@ def combat(Perso1, Perso2): |
|
|
Perso2.regen_pdv() |
|
|
Perso2.regen_pdv() |
|
|
conn.close() |
|
|
conn.close() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Perso1 = Personnage("Squeezie", choice(["Déesee", "Fée", "Démon", "Géant"])) |
|
|
Perso1 = Personnage("Squeezie", choice(["Déesee", "Fée", "Démon", "Géant"])) |
|
|
Perso2 = Personnage("TiboInShape", choice(["Déesee", "Fée", "Démon", "Géant"])) |
|
|
Perso2 = Personnage("TiboInShape", choice(["Déesee", "Fée", "Démon", "Géant"])) |
|
|
|
|
|
|
|
|
# commande utile à copier : |
|
|
# commande utile à copier : |
|
|
# - combat(Squeezie, TiboInShape) |
|
|
# - combat(Perso1, Perso2) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -160,4 +156,4 @@ Perso2 = Personnage("TiboInShape", choice(["Déesee", "Fée", "Démon", "Géant" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|