From 7f1f52b6d4774fb6cc523ec035dbf4ac4cd4af48 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Tue, 11 Mar 2008 20:18:40 +0000 Subject: Another of those commits on monster speech, hopefully the last one for some time, though. I added a new prefix "related" if the player character has the same genus as the monster. My new prefix additions (hostile, related and religion) can now be skipped in the speech lookup, which fixes a couple of problems where several monsters were forced silent because of lookup problems. Also clean up the lookup process for silence, allow charmed monsters to sometimes speak (if rarely) and added several debugging statements that are also mentioned in monster_speech.txt that is now clearer than ever before (I hope). Fixed a couple of bugs in the monster shape calculation where the old glyphs were still being used. Also, a Draconian character eating any type of Draconian will now count as cannibalism. Also: FR 1894060: Level annotations now prompt for confirmation if they contain an exclamation mark (rather than "WARN"). Fix 1859443: Arriving on a square via staircase now calls request_autopickup and will describe items on the square. Oh, and fix init.txt to really allow reading in macros from external files. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3604 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/database.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crawl-ref/source/database.cc') diff --git a/crawl-ref/source/database.cc b/crawl-ref/source/database.cc index 853d5a9a4a..fc33b797a8 100644 --- a/crawl-ref/source/database.cc +++ b/crawl-ref/source/database.cc @@ -742,6 +742,9 @@ std::string getSpeakString(const std::string &monst) int num_replacements = 0; +#ifdef DEBUG_MONSPEAK + mprf(MSGCH_DIAGNOSTICS, "monster speech lookup for %s", monst.c_str()); +#endif return getRandomizedStr(speakDB, monst, "", num_replacements); } -- cgit v1.2.3-54-g00ecf