Fix a regression in inventory. Now using EvTable instead of prettytable.
This commit is contained in:
parent
4c3926cdf1
commit
acf3dafb4f
1 changed files with 2 additions and 4 deletions
|
|
@ -222,11 +222,9 @@ class CmdInventory(COMMAND_DEFAULT_CLASS):
|
||||||
if not items:
|
if not items:
|
||||||
string = "You are not carrying anything."
|
string = "You are not carrying anything."
|
||||||
else:
|
else:
|
||||||
table = prettytable.PrettyTable(["name", "desc"])
|
table = evtable.EvTable(border="header")
|
||||||
table.header = False
|
|
||||||
table.border = False
|
|
||||||
for item in items:
|
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
|
string = "{wYou are carrying:\n%s" % table
|
||||||
self.caller.msg(string)
|
self.caller.msg(string)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue