Fix random bugs

This commit is contained in:
2021-02-22 01:44:55 +00:00
parent 1fe35c77fc
commit 743d002167
3 changed files with 20 additions and 13 deletions
+2
View File
@@ -922,7 +922,9 @@ class Game:
def select_next_item(self):
# select the next item slot that has an item
for slot, item in self.g.inv.items():
if slot < 9: continue # skip armour slots
if item.present:
print('slot:', slot, 'item:', item)
self.g.game.choose_slot(slot)
self.g.holding = item.item_id
return True