|
From: <gi...@cr...> - 2025-12-04 01:15:09
|
via d7418c7e04b6be3e21a3df9889984769620c3177 (commit)
from d34c7c2060449724af7987b707ed3f422bae7db0 (commit)
-----------------------------------------------------------------------
commit d7418c7e04b6be3e21a3df9889984769620c3177
Author: David Lawrence Ramsey <poo...@gm...>
Date: Wed Dec 3 18:11:04 2025 -0600
Handle singular "the " names in encounter msgs.
So we get e.g. "You encounter the Serpent of Hell." instead of "You
encounter Serpent of Hell."
Note that a hypothetical unique monster with both a "the " name and a
title (none currently exist) will have its title take precedence.
-----------------------------------------------------------------------
Summary of changes:
crawl-ref/source/player-notices.cc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/crawl-ref/source/player-notices.cc b/crawl-ref/source/player-notices.cc
index 7043f54ec4..01425951fb 100644
--- a/crawl-ref/source/player-notices.cc
+++ b/crawl-ref/source/player-notices.cc
@@ -319,6 +319,9 @@ static string _describe_monsters_from_species(const vector<details> &species)
if (!title.empty())
return title;
+ if (mons_is_unique(det.mon->type) && mons_is_the(det.mon->type))
+ name = "the " + name;
+
return name;
}
else if (det.count > 1 && det.genus)
--
Dungeon Crawl Stone Soup
|