From f5e00c03705ad792bc01d017b6d8bd8ff003baf9 Mon Sep 17 00:00:00 2001 From: brunoharlein Date: Tue, 17 Dec 2019 16:54:08 +0100 Subject: [PATCH] add coment translatation for student --- .../__pycache__/character.cpython-37.pyc | Bin 2251 -> 2251 bytes characters/character.py | 1 + game/__pycache__/arena.cpython-37.pyc | Bin 1700 -> 1820 bytes game/arena.py | 3 ++- main.py | 1 + 5 files changed, 4 insertions(+), 1 deletion(-) diff --git a/characters/__pycache__/character.cpython-37.pyc b/characters/__pycache__/character.cpython-37.pyc index 421ade13682384d1e24d6022f2a27d25e1741825..d27a70912de99b0819fa9c0dcc5c8edff6e30520 100644 GIT binary patch delta 54 zcmX>tcv_IpiItcv_IpiI;6+{l;A!pJnah~+J#+U5k-SB#8$lfBuOGCEBD$Ud7< JaB?q)9RRL85J&(3 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 742c1a29ed056d3c8b5b23e50668453d0980b096..1352cdd6efb1831aa637fc6435f1533631f93358 100644 GIT binary patch delta 171 zcmZ3&JBN?YiIp zQc`mh^HNfa6cS4nvhqt)fkLHusS1e@C8;F}IqInuhgT+-mH^chq~@h0=9MTEmZmD? sq{7rg6y@cm=4L7s=L4lv^AyT5Q(rOxt$zt})8uO`KNy)OpJ%-a0B(dg#Q*>R delta 41 vcmbQkw}h9^iI 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)