summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/effects.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/effects.cc')
-rw-r--r--crawl-ref/source/effects.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc
index d66b9d3d45..401ac27c9e 100644
--- a/crawl-ref/source/effects.cc
+++ b/crawl-ref/source/effects.cc
@@ -1820,9 +1820,11 @@ bool acquirement(object_class_type class_wanted, int agent,
thing.inscription = "god gift";
if (is_random_artefact(thing))
{
- if (!is_unrandom_artefact(thing))
+ if (!is_unrandom_artefact(thing)
+ && !thing.base_type == OBJ_BOOKS)
{
- // Give another name that takes god gift into account.
+ // Give another name that takes god gift into account;
+ // artefact books already do that.
thing.props["randart_name"].get_string() =
artefact_name(thing, false);
}