Repaired the use functionnality of the main item, as well as the load system for Armor items.

This commit is contained in:
eichhornchen
2021-01-06 11:13:17 +01:00
parent f3fe04e13a
commit a9aeb9ca3a
3 changed files with 15 additions and 10 deletions

View File

@ -127,8 +127,8 @@ class Game:
elif key == KeyValues.INVENTORY:
self.state = GameMode.INVENTORY
self.display_actions(DisplayActions.UPDATE)
elif key == KeyValues.USE and self.player.equipped_item:
self.player.equipped_item.use()
elif key == KeyValues.USE and self.player.equipped_main:
self.player.equipped_main.use()
elif key == KeyValues.SPACE:
self.state = GameMode.MAINMENU
elif key == KeyValues.CHAT: