|
From: <gi...@cr...> - 2025-12-04 00:35:09
|
via d34c7c2060449724af7987b707ed3f422bae7db0 (commit)
from 765122c258c467289150f5aba6333087d248bb2a (commit)
-----------------------------------------------------------------------
commit d34c7c2060449724af7987b707ed3f422bae7db0
Author: DracoOmega <dra...@gm...>
Date: Wed Dec 3 21:04:08 2025 -0330
Fix uniques' titles not being used in encounter messages (Snakku)
-----------------------------------------------------------------------
Summary of changes:
crawl-ref/source/player-notices.cc | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/crawl-ref/source/player-notices.cc b/crawl-ref/source/player-notices.cc
index d4c7221abc..7043f54ec4 100644
--- a/crawl-ref/source/player-notices.cc
+++ b/crawl-ref/source/player-notices.cc
@@ -9,6 +9,7 @@
#include "act-iter.h"
#include "areas.h"
#include "attitude-change.h"
+#include "database.h"
#include "delay.h"
#include "describe.h"
#include "directn.h"
@@ -312,9 +313,12 @@ static string _describe_monsters_from_species(const vector<details> &species)
[] (const details &det)
{
string name = det.name;
- if (det.mon->is_named() && det.count == 1
- || !you.can_see(*det.mon))
+ if (det.mon->is_named() && det.count == 1)
{
+ string title = getMiscString(det.mon->name(DESC_DBNAME) + " title");
+ if (!title.empty())
+ return title;
+
return name;
}
else if (det.count > 1 && det.genus)
--
Dungeon Crawl Stone Soup
|