summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-book.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/spl-book.cc')
-rw-r--r--crawl-ref/source/spl-book.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-book.cc b/crawl-ref/source/spl-book.cc
index 553f8341fb..377129fbe1 100644
--- a/crawl-ref/source/spl-book.cc
+++ b/crawl-ref/source/spl-book.cc
@@ -1944,7 +1944,15 @@ bool make_book_level_randart(item_def &book, int level,
for (int i = 0; i < SPELLBOOK_SIZE; i++)
spell_vec[i] = (long) chosen_spells[i];
- set_randart_name(book, getRandNameString("level book"));
+ std::string name = "\"";
+
+ if (god != GOD_NO_GOD)
+ name += god_name(god, false) + "'s ";
+
+ name += getRandNameString("level book");
+ name += '"';
+
+ set_randart_name(book, name);
return (true);
}