summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/items.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/items.cc')
-rw-r--r--crawl-ref/source/items.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc
index cdaf9f4d97..59b04c9161 100644
--- a/crawl-ref/source/items.cc
+++ b/crawl-ref/source/items.cc
@@ -1119,7 +1119,7 @@ std::string origin_desc(const item_def &item)
break;
default:
if (iorig > GOD_NO_GOD && iorig < NUM_GODS)
- desc += std::string(god_name(iorig))
+ desc += std::string(god_name(static_cast<god_type>(iorig)))
+ " gifted " + article_it(item) + " to you ";
else
// Bug really.
@@ -3044,3 +3044,8 @@ int item_def::book_number() const
base_type == OBJ_STAVES? sub_type + 40 :
-1);
}
+
+bool item_def::cursed() const
+{
+ return (item_cursed(*this));
+}