summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/it_use3.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-13 16:04:11 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-13 16:04:11 +0000
commitc29226331c18192435cb10802ecd42ae398fae4f (patch)
tree5d38fbcdb10056a923bf2ca3bd05ca287901ec12 /crawl-ref/source/it_use3.cc
parented2e30ea48760f95b12fb08462ddd1dbc422ed00 (diff)
downloadcrawl-ref-c29226331c18192435cb10802ecd42ae398fae4f.tar.gz
crawl-ref-c29226331c18192435cb10802ecd42ae398fae4f.zip
Reorder weapon speech to make some messages appear more rarely
than others, and increase variation. Add a number of new speech, mostly for the Singing Sword. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6914 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/it_use3.cc')
-rw-r--r--crawl-ref/source/it_use3.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/it_use3.cc b/crawl-ref/source/it_use3.cc
index 6cb1db63e2..e3fe7f923d 100644
--- a/crawl-ref/source/it_use3.cc
+++ b/crawl-ref/source/it_use3.cc
@@ -156,6 +156,11 @@ void special_wielded()
msg = replace_all(msg, "@The_weapon@", "The @weapon@");
msg = replace_all(msg, "@the_weapon@", "the @weapon@");
msg = replace_all(msg, "@weapon@", you.inv[wpn].name(DESC_BASENAME));
+ // replace references to player name and god
+ msg = replace_all(msg, "@player_name@", you.your_name);
+ msg = replace_all(msg, "@player_god@",
+ you.religion == GOD_NO_GOD ? "atheism"
+ : god_name(you.religion, coinflip()));
mpr(msg.c_str(), channel);