summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/direct.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-25 18:12:02 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-25 18:12:02 +0000
commit1dee477edbd887705ee489f960b92aa7de9e7afd (patch)
tree27accc52b70d6ec2481109839be40d00522d8f34 /crawl-ref/source/direct.cc
parentdb66c453fc644d1dffd1987b13b38e76a4baa8f1 (diff)
downloadcrawl-ref-1dee477edbd887705ee489f960b92aa7de9e7afd.tar.gz
crawl-ref-1dee477edbd887705ee489f960b92aa7de9e7afd.zip
* Fixed Vault:8 level being generated with no rune (cbus).
* Dropped odds of statue vault. * Take note of messages received in dgamelaunch chat. * crawl -vscores, etc. should not attempt to create save/morgue directories (Marc). * Changed wording of "Foo wielding bar comes into view" to "Foo comes into view. It is wielding bar.". * Suppress curse status display of monster items. * TSO worshippers are no longer warned when stabbing monsters if TSO doesn't object to stabbing those monsters. * Wand zap status is now {zapped: N} instead of {zapped N times} to reduce verbosity. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2204 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/direct.cc')
-rw-r--r--crawl-ref/source/direct.cc20
1 files changed, 12 insertions, 8 deletions
diff --git a/crawl-ref/source/direct.cc b/crawl-ref/source/direct.cc
index 07d0da5cd3..fb2884c267 100644
--- a/crawl-ref/source/direct.cc
+++ b/crawl-ref/source/direct.cc
@@ -1444,6 +1444,8 @@ static std::string feature_do_grammar(description_level_type dtype,
return article_a(desc, false);
case DESC_NOCAP_A:
return article_a(desc, true);
+ case DESC_NONE:
+ return ("");
default:
return (desc);
}
@@ -1775,11 +1777,13 @@ static std::string describe_monster_weapon(const monsters *mons)
std::string name1, name2;
const item_def *weap = mons->mslot_item(MSLOT_WEAPON);
const item_def *alt = mons->mslot_item(MSLOT_ALT_WEAPON);
-
+
if (weap)
- name1 = weap->name(DESC_NOCAP_A);
+ name1 = weap->name(DESC_NOCAP_A, false, false, true,
+ false, ISFLAG_KNOW_CURSE);
if (alt && (!weap || mons_wields_two_weapons(mons)))
- name2 = alt->name(DESC_NOCAP_A);
+ name2 = alt->name(DESC_NOCAP_A, false, false, true,
+ false, ISFLAG_KNOW_CURSE);
if (name1.empty() && !name2.empty())
name1.swap(name2);
@@ -1788,7 +1792,8 @@ static std::string describe_monster_weapon(const monsters *mons)
{
item_def dup = *weap;
++dup.quantity;
- name1 = dup.name(DESC_NOCAP_A, false, false, true, true);
+ name1 = dup.name(DESC_NOCAP_A, false, false, true, true,
+ ISFLAG_KNOW_CURSE);
name2.clear();
}
@@ -1807,8 +1812,6 @@ static std::string describe_monster_weapon(const monsters *mons)
return (desc);
}
-
-
#ifdef DEBUG_DIAGNOSTICS
static std::string stair_destination_description(const coord_def &pos)
{
@@ -1910,9 +1913,10 @@ static void describe_monster(const monsters *mon)
}
}
-std::string get_monster_desc(const monsters *mon, bool full_desc)
+std::string get_monster_desc(const monsters *mon, bool full_desc,
+ description_level_type mondtype)
{
- std::string desc = mon->name(DESC_CAP_A);
+ std::string desc = mon->name(mondtype);
const int mon_arm = mon->inv[MSLOT_ARMOUR];
std::string weap = "";