summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-book.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-06 19:08:10 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-06 19:08:10 +0000
commit7d8f213e503f50ce492a7021e6d991e771c4e88a (patch)
tree4b42105600711dffde6a7b1156b7d9373f18129b /crawl-ref/source/spl-book.cc
parentd717830fb8d47cb6ae2fe1fedc00240e9f5f601f (diff)
downloadcrawl-ref-7d8f213e503f50ce492a7021e6d991e771c4e88a.tar.gz
crawl-ref-7d8f213e503f50ce492a7021e6d991e771c4e88a.zip
Properly use apostrophise() in a few more places.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8275 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-book.cc')
-rw-r--r--crawl-ref/source/spl-book.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/crawl-ref/source/spl-book.cc b/crawl-ref/source/spl-book.cc
index 1f273d634c..09a6df8809 100644
--- a/crawl-ref/source/spl-book.cc
+++ b/crawl-ref/source/spl-book.cc
@@ -32,6 +32,7 @@ REVISION("$Rev$");
#include "itemprop.h"
#include "items.h"
#include "it_use3.h"
+#include "Kills.h"
#include "message.h"
#include "player.h"
#include "randart.h"
@@ -1950,9 +1951,9 @@ bool make_book_level_randart(item_def &book, int level, int num_spells)
std::string name = "\"";
if (god != GOD_NO_GOD)
- name += god_name(god, false) + "'s ";
+ name += apostrophise(god_name(god, false)) + " ";
else if (one_chance_in(3))
- name += make_name(random_int(), false) + "'s ";
+ name += apostrophise(make_name(random_int(), false)) + " ";
else
has_owner = false;
@@ -2410,7 +2411,7 @@ bool make_book_theme_randart(item_def &book, int disc1, int disc2,
need_quotes = false;
if (need_quotes)
- name = '"' + name + "'s ";
+ name = "\"" + apostrophise(name) + " ";
name += getRandNameString("book_noun");
name += " of ";