The player must be alive to interact with the inventory

This commit is contained in:
Yohann D'ANELLO 2020-12-05 13:20:52 +01:00
parent bc40f8d0e6
commit fb8b2aff01

View File

@ -123,7 +123,7 @@ class Game:
self.inventory_menu.go_up()
elif key == KeyValues.DOWN:
self.inventory_menu.go_down()
if self.inventory_menu.values:
if self.inventory_menu.values and not self.player.dead:
if key == KeyValues.USE:
self.inventory_menu.validate().use()
elif key == KeyValues.EQUIP: