From 358c28d4106a2a1cbe09844912caec7e2839968e Mon Sep 17 00:00:00 2001 From: Patrick Marsee Date: Sun, 14 Nov 2021 22:47:41 -0500 Subject: [PATCH] Fixed bug where when multiple items with the same name exist in the inventory, only one appears. --- gameshell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gameshell.py b/gameshell.py index b66ce6b..863ce81 100644 --- a/gameshell.py +++ b/gameshell.py @@ -299,7 +299,7 @@ If -l is given, a map legend will be printed under the map.""" return def inv(self, args): - print('\n'.join([i for i in self.gameBase.player.thingNames])) + print('\n'.join([i.name for i in self.gameBase.player.inventory])) def newGame(self, args): if self.__inGame: