The player must be alive to interact with the inventory
This commit is contained in:
parent
bc40f8d0e6
commit
fb8b2aff01
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue