Fix a regression in inventory. Now using EvTable instead of prettytable.

This commit is contained in:
Griatch 2016-06-27 22:05:20 +02:00
parent 4c3926cdf1
commit acf3dafb4f

View file

@ -222,11 +222,9 @@ class CmdInventory(COMMAND_DEFAULT_CLASS):
if not items:
string = "You are not carrying anything."
else:
table = prettytable.PrettyTable(["name", "desc"])
table.header = False
table.border = False
table = evtable.EvTable(border="header")
for item in items:
table.add_row(["{C%s{n" % item.name, item.db.desc and item.db.desc or ""])
table.add_row("{C%s{n" % item.name, item.db.desc or "")
string = "{wYou are carrying:\n%s" % table
self.caller.msg(string)