patch de l'invetaire
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user