diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-07-17 02:05:44 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-07-17 02:05:44 +0200 |
commit | 334f978988fcae4f8b79fa9c1e93b865365a5a87 (patch) | |
tree | 2d9ae4db094e20f366c31c5f6d111caf25118123 /crawl-ref/source/shout.cc | |
parent | 33d5514f9e539166431fe5a78a49c9ad879cb27d (diff) | |
download | crawl-ref-334f978988fcae4f8b79fa9c1e93b865365a5a87.tar.gz crawl-ref-334f978988fcae4f8b79fa9c1e93b865365a5a87.zip |
Replace @a_player_genus@ in weapon noises.
Yay for monster speech having a list of replacements on its own.
Diffstat (limited to 'crawl-ref/source/shout.cc')
-rw-r--r-- | crawl-ref/source/shout.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/shout.cc b/crawl-ref/source/shout.cc index 844684c8a2..480385fa0b 100644 --- a/crawl-ref/source/shout.cc +++ b/crawl-ref/source/shout.cc @@ -421,6 +421,8 @@ void item_noise(const item_def &item, string msg, int loudness) msg = replace_all(msg, "@player_god@", you.religion == GOD_NO_GOD ? "atheism" : god_name(you.religion, coinflip())); + msg = replace_all(msg, "@a_player_genus@", + article_a(species_name(you.species, true))); mpr(msg.c_str(), channel); |