Browse Source

patch de l'invetaire

master v-patch
BARRAUX Arthur 2 years ago
parent
commit
1649aaffb0
  1. 1
      main.py

1
main.py

@ -345,6 +345,7 @@ class App:
if position[0] > 0:
position[0] -= 1
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)
if self.character.pdv > self.character.max_pdv:
self.character.pdv = self.character.max_pdv

Loading…
Cancel
Save