diff --git a/characters/__pycache__/character.cpython-37.pyc b/characters/__pycache__/character.cpython-37.pyc index 421ade1..d27a709 100644 Binary files a/characters/__pycache__/character.cpython-37.pyc and b/characters/__pycache__/character.cpython-37.pyc differ diff --git a/characters/character.py b/characters/character.py index 997e9fc..6b6bab8 100644 --- a/characters/character.py +++ b/characters/character.py @@ -29,6 +29,7 @@ def attacks(self, target): print("{} a esquivé l'attaque".format(target.name)) return False # Substract to target's life the character's attack minus the target defens divided by 5 + # Soustrayez à la vie de la cible l'attaque du personnage moins la défense cible divisée par 5 target.life -= self.attack - (target.defense/5) # Make sure characters can not have negative life if target.life < 0: diff --git a/game/__pycache__/arena.cpython-37.pyc b/game/__pycache__/arena.cpython-37.pyc index 742c1a2..1352cdd 100644 Binary files a/game/__pycache__/arena.cpython-37.pyc and b/game/__pycache__/arena.cpython-37.pyc differ diff --git a/game/arena.py b/game/arena.py index a14774d..6c25a8f 100644 --- a/game/arena.py +++ b/game/arena.py @@ -22,7 +22,8 @@ def fighters_leave(self): self.ennemy = False def battle(self): - """function to ask player for an action and execute it while both player or ennemy are alive""" + """function to ask player for an action and execute it while both player or ennemy are alive + Fonction pour demander au joueur une action et l'exécuter pendant que le joueur et l'ennemi sont en vie""" self.transition(2) # As long both characters are alive while self.player.life > 0 and self.ennemy.life > 0: diff --git a/main.py b/main.py index d664c93..2c2e092 100644 --- a/main.py +++ b/main.py @@ -15,6 +15,7 @@ ] narrator.tell(introduction) # Allow the user to choose his type of character and retrieve it from the factory + # Permettre à l'utilisateur de choisir son type de personnage et de le récupérer en factory choice = narrator.choose_character() player = Factory.get_character(choice) narrator.player_customization(player)