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
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ class Game:
self.inventory_menu.go_up() self.inventory_menu.go_up()
elif key == KeyValues.DOWN: elif key == KeyValues.DOWN:
self.inventory_menu.go_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: if key == KeyValues.USE:
self.inventory_menu.validate().use() self.inventory_menu.validate().use()
elif key == KeyValues.EQUIP: elif key == KeyValues.EQUIP: