Compare commits

...

1 Commits
vf2 ... master

Author SHA1 Message Date
BARRAUX Arthur 1649aaffb0 patch de l'invetaire 2 years ago
  1. 1
      main.py

1
main.py

@ -345,6 +345,7 @@ class App:
if position[0] > 0: if position[0] > 0:
position[0] -= 1 position[0] -= 1
elif key == getkey.keys.ENTER: elif key == getkey.keys.ENTER:
if self.character.inv.count('potion') > 0:
self.character.pdv += round((self.character.max_pdv - self.character.pdv) * 0.5) self.character.pdv += round((self.character.max_pdv - self.character.pdv) * 0.5)
if self.character.pdv > self.character.max_pdv: if self.character.pdv > self.character.max_pdv:
self.character.pdv = self.character.max_pdv self.character.pdv = self.character.max_pdv

Loading…
Cancel
Save