mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
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:
|
||||
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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue