|
@ -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 |
|
|