summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/delay.cc
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2014-06-01 20:14:54 -0600
committerSteve Melenchuk <smelenchuk@gmail.com>2014-06-01 21:01:36 -0600
commita0774edbfe956abbcc3e1ee87e03d9a8927d7f9a (patch)
treed7125d84a2d2ce53634393dacc7643a7c8a31beb /crawl-ref/source/delay.cc
parentba99abefebd6220e42f6250fbecdf33ced610f5c (diff)
downloadcrawl-ref-a0774edbfe956abbcc3e1ee87e03d9a8927d7f9a.tar.gz
crawl-ref-a0774edbfe956abbcc3e1ee87e03d9a8927d7f9a.zip
A popular 4.1ism: Titles for uniques.
Boris, Master of Life and Death comes into view. Currently displays only on the describe screen and on the unique coming into view by itself. Special thanks to the team on ##crawl-dev that helped assemble these.
Diffstat (limited to 'crawl-ref/source/delay.cc')
-rw-r--r--crawl-ref/source/delay.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/delay.cc b/crawl-ref/source/delay.cc
index d4541054c8..d99a6f470e 100644
--- a/crawl-ref/source/delay.cc
+++ b/crawl-ref/source/delay.cc
@@ -1560,7 +1560,9 @@ static inline bool _monster_warning(activity_interrupt_type ai,
return false;
else
{
- string text = mon->full_name(DESC_A);
+ string text = getMiscString(mon->name(DESC_DBNAME) + " title");
+ if (text.empty())
+ text = mon->full_name(DESC_A);
if (mon->type == MONS_PLAYER_GHOST)
{
text += make_stringf(" (%s)",