diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-04 08:45:56 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-04 08:45:56 +0000 |
commit | f1597e614cba2b1605e8e3e281cd11eef9dffc78 (patch) | |
tree | 902d2c39aff855dab7a91f7ea762db25cb5d49ae /crawl-ref/source/delay.cc | |
parent | 8f8d4ef8be9ae828c89a9e735cf9ac9a901a5294 (diff) | |
download | crawl-ref-f1597e614cba2b1605e8e3e281cd11eef9dffc78.tar.gz crawl-ref-f1597e614cba2b1605e8e3e281cd11eef9dffc78.zip |
Removed randomised messages for "already seen" monsters. Randomised messages for frequent events => message spam that's hard to block.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4861 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/delay.cc')
-rw-r--r-- | crawl-ref/source/delay.cc | 35 |
1 files changed, 2 insertions, 33 deletions
diff --git a/crawl-ref/source/delay.cc b/crawl-ref/source/delay.cc index 1719d3bc17..9b168c5a62 100644 --- a/crawl-ref/source/delay.cc +++ b/crawl-ref/source/delay.cc @@ -1359,35 +1359,13 @@ inline static void monster_warning(activity_interrupt_type ai, const monsters* mon = static_cast<const monsters*>(at.data); if (!mon->visible()) return; -#ifndef DEBUG_DIAGNOSTICS if (at.context == "already seen") { // Only say "comes into view" if the monster wasn't in view // during the previous turn. if (testbits(mon->flags, MF_WAS_IN_VIEW)) - { - switch(random2(4)) - { - case 0: - mprf(MSGCH_WARN, "%s's nearness makes you nervous.", - mon->name(DESC_CAP_THE).c_str()); - break; - case 1: - mprf(MSGCH_WARN, "%s is too close now for your liking.", - mon->name(DESC_CAP_THE).c_str()); - break; - case 2: - mprf(MSGCH_WARN, - "You feel that %s is too close now for comfort.", - mon->name(DESC_NOCAP_THE).c_str()); - break; - default: - mprf(MSGCH_WARN, - "%s's presence makes you stop your activity.", - mon->name(DESC_CAP_THE).c_str()); - break; - } - } + mprf(MSGCH_WARN, "%s is too close now for your liking.", + mon->name(DESC_CAP_THE).c_str()); } else { @@ -1435,15 +1413,6 @@ inline static void monster_warning(activity_interrupt_type ai, if (get_mons_colour(mon) != mon->colour) learned_something_new(TUT_MONSTER_BRAND); } -#else - formatted_string fs( channel_to_colour(MSGCH_WARN) ); - fs.cprintf("%s (", mon->name(DESC_PLAIN, true).c_str()); - fs.add_glyph( mon ); - fs.cprintf(") in view: (%d,%d), see_grid: %s", - mon->x, mon->y, - see_grid(mon->x, mon->y)? "yes" : "no"); - formatted_mpr(fs, MSGCH_WARN); -#endif } } |