summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-22 21:30:59 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-22 21:30:59 +0000
commit82fa0cb1d1d28ae309754c0dbcd620c554f7f1d9 (patch)
tree0d267bfac0bd5bb88e60060e030fe60608064aff /crawl-ref/source/player.cc
parentaa1ef7b743654c99bca7b4dfc6f7d7bfd50307a0 (diff)
downloadcrawl-ref-82fa0cb1d1d28ae309754c0dbcd620c554f7f1d9.tar.gz
crawl-ref-82fa0cb1d1d28ae309754c0dbcd620c554f7f1d9.zip
Changing screaming mutation to influence both frequency
and volume of shouting -> yelling -> screaming. Reduced frequency of level 2 and 3 to make up for greater range. When paralysed, you are unable to scream. Also cleaning up mutation listings. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2517 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc13
1 files changed, 9 insertions, 4 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 161d93a54d..4acec82a45 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -5587,6 +5587,9 @@ bool player::cannot_speak() const
if (silenced(x_pos, y_pos))
return (true);
+ if (you.duration[DUR_PARALYSIS])
+ return (true);
+
// No transform that prevents the player from speaking yet.
return (false);
}
@@ -5605,11 +5608,13 @@ std::string player::shout_verb() const
return "squeak";
case TRAN_AIR:
return "__NONE";
- default:
- if (you.mutation[MUT_SCREAM])
- return "scream";
- else
+ default: // depends on SCREAM mutation
+ if (you.mutation[MUT_SCREAM] <= 1)
+ return "shout";
+ else if (you.mutation[MUT_SCREAM] == 2)
return "yell";
+ else
+ return "scream";
}
}