Fixed bug where when multiple items with the same name exist in the inventory, only one appears.

This commit is contained in:
Patrick Marsee 2021-11-14 22:47:41 -05:00
parent 18595087ff
commit 358c28d410

View file

@ -299,7 +299,7 @@ If -l is given, a map legend will be printed under the map."""
return return
def inv(self, args): 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): def newGame(self, args):
if self.__inGame: if self.__inGame: