From ae68e84557a7e56fd7210c1009aa1313dcc78adf Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 22 Nov 2023 15:28:00 -0500 Subject: Increased capacity for creating items from command line --- src/item.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/item.cc') 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 { -- cgit v1.2.3