From 75274ebd6ba90784f5aa837b7e5ea97fc6bfb720 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 20 Oct 2012 16:35:26 +0000 Subject: Item id based inventory, support for weapon dealers. --- src/core/entity.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/entity.cc') diff --git a/src/core/entity.cc b/src/core/entity.cc index 825f9bf..78878f9 100644 --- a/src/core/entity.cc +++ b/src/core/entity.cc @@ -94,11 +94,11 @@ void Entity::list_inventory() const return; } - con_print << " ^Nid type label amount" << std::endl; + con_print << " ^Nitem info infotype amount" << std::endl; for (Inventory::Items::const_iterator it = entity_inventory->items().begin(); it != entity_inventory->items().end(); it++) { Item *item = (*it); con_print << " " - << " ^B" << std::setw(4) << item->info()->id() + << " ^B" << std::setw(4) << item->id() << " ^N" << aux::pad_right((item->info()->type() ? item->info()->type()->label() : "NULL"), 8) << " ^N" << aux::pad_right(item->info()->label(), 24) << std::setw(5) << item->amount() << std::endl; -- cgit v1.2.3