summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/externs.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-04 08:40:40 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-04 08:40:40 +0000
commit8f8d4ef8be9ae828c89a9e735cf9ac9a901a5294 (patch)
tree2f3c78bd56ccade8b149b479a4090bfea619962a /crawl-ref/source/externs.h
parentd5c69c9f285d371b0625de75b9a71055ec220061 (diff)
downloadcrawl-ref-8f8d4ef8be9ae828c89a9e735cf9ac9a901a5294.tar.gz
crawl-ref-8f8d4ef8be9ae828c89a9e735cf9ac9a901a5294.zip
Fix god-named monsters losing their descriptions.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4860 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/externs.h')
-rw-r--r--crawl-ref/source/externs.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/crawl-ref/source/externs.h b/crawl-ref/source/externs.h
index 71af54fc6c..dbe192d304 100644
--- a/crawl-ref/source/externs.h
+++ b/crawl-ref/source/externs.h
@@ -1056,6 +1056,11 @@ public:
// Returns true if the monster is named with a proper name, or is
// a player ghost.
bool is_named() const;
+
+ // Does this monster have a base name, i.e. is base_name() != name().
+ // See base_name() for details.
+ bool has_base_name() const;
+
const monsterentry *find_monsterentry() const;
void init_experience();
@@ -1160,6 +1165,12 @@ public:
std::string name(description_level_type type) const;
std::string name(description_level_type type, bool force_visible) const;
+
+ // Base name of the monster, bypassing any mname setting. For an orc priest
+ // named Arbolt, name() will return "Arbolt", but base_name() will return
+ // "orc priest".
+ std::string base_name(description_level_type type,
+ bool force_visible) const;
std::string pronoun(pronoun_type pro) const;
std::string conj_verb(const std::string &verb) const;