summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/religion.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-16 05:15:03 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-16 05:15:03 +0000
commit92716cc1c2886fe13172931068a40e4a5a5b880c (patch)
tree39e8e94cb040893d6ba21913a0bfb949fed106d0 /crawl-ref/source/religion.cc
parent8e48f4a3c0706000a11fdeab803df67ceaf72a3c (diff)
downloadcrawl-ref-92716cc1c2886fe13172931068a40e4a5a5b880c.tar.gz
crawl-ref-92716cc1c2886fe13172931068a40e4a5a5b880c.zip
Pass the message given to god_speaks() and simple_god_message() through
do_mon_str_replacements() to do replacements on things like @player_genus_plural@ and @player_god@. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7845 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r--crawl-ref/source/religion.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index 14339c2786..1dddb3e31c 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -2283,7 +2283,14 @@ god_type string_to_god(const char *_name, bool exact)
void god_speaks(god_type god, const char *mesg)
{
- mpr(mesg, MSGCH_GOD, god);
+ monsters fake_mon;
+ fake_mon.type = MONS_PROGRAM_BUG;
+ fake_mon.hit_points = 1;
+ fake_mon.god = god;
+ fake_mon.position = you.pos();
+ fake_mon.mname = "FAKE GOD MONSTER";
+
+ mpr(do_mon_str_replacements(mesg, &fake_mon).c_str(), MSGCH_GOD, god);
}
static bool _do_god_revenge(conduct_type thing_done)