diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-16 02:45:50 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-16 02:45:50 +0000 |
commit | 8e48f4a3c0706000a11fdeab803df67ceaf72a3c (patch) | |
tree | bd6c595467b028cb9c0cd0ab1d0206fa350e98b4 /crawl-ref/source/spl-book.cc | |
parent | 69f34130bc2442fd59b5870e2d864c4f72f0d2e2 (diff) | |
download | crawl-ref-8e48f4a3c0706000a11fdeab803df67ceaf72a3c.tar.gz crawl-ref-8e48f4a3c0706000a11fdeab803df67ceaf72a3c.zip |
Fix bug 2430400: god-gift randart books having bad names.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7842 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-book.cc')
-rw-r--r-- | crawl-ref/source/spl-book.cc | 10 |
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); } |