diff options
Diffstat (limited to 'src/item.cc')
-rw-r--r-- | src/item.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/item.cc b/src/item.cc index cf55d4a..8d5d9a3 100644 --- a/src/item.cc +++ b/src/item.cc @@ -59,7 +59,10 @@ namespace entry { } string Item::getText() const { - return Entry::getText() + " " + getCostWeightText(); + stringstream text; + text << getName() << " (" << getType() << "): "; + text << Entry::getText() << " " << getCostWeightText(); + return text.str(); } string Item::getText(const creature::Creature& c) const { |