From 1dee477edbd887705ee489f960b92aa7de9e7afd Mon Sep 17 00:00:00 2001 From: dshaligram Date: Tue, 25 Sep 2007 18:12:02 +0000 Subject: * 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 --- crawl-ref/source/direct.cc | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'crawl-ref/source/direct.cc') 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 = ""; -- cgit v1.2.3-54-g00ecf