aboutsummaryrefslogtreecommitdiff
path: root/src/item.cc
diff options
context:
space:
mode:
authorYour Name <you@example.com>2023-11-22 15:28:00 -0500
committerYour Name <you@example.com>2023-11-22 15:28:00 -0500
commitae68e84557a7e56fd7210c1009aa1313dcc78adf (patch)
tree60616c822927847dd078f014c514a65f764607f3 /src/item.cc
parent0d32e0d3342ef2455014c8e1164977c816763317 (diff)
downloaddmtool-ae68e84557a7e56fd7210c1009aa1313dcc78adf.tar.gz
dmtool-ae68e84557a7e56fd7210c1009aa1313dcc78adf.tar.bz2
dmtool-ae68e84557a7e56fd7210c1009aa1313dcc78adf.zip
Increased capacity for creating items from command line
Diffstat (limited to 'src/item.cc')
-rw-r--r--src/item.cc5
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 {