diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-25 09:49:39 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-25 09:49:39 +0000 |
commit | aed21b5eb6dd5422b50ecb46617f2da16f108965 (patch) | |
tree | ca38d8f0a9e58eeba9a0a1243669ea83ea988a92 /crawl-ref/source/player.cc | |
parent | d629a6a0ab679fb6728d2b632fe4bea13fcd3a0b (diff) | |
download | crawl-ref-aed21b5eb6dd5422b50ecb46617f2da16f108965.tar.gz crawl-ref-aed21b5eb6dd5422b50ecb46617f2da16f108965.zip |
[1810433] Ogre hunters start with large rocks. Monster ogres can also throw large rocks but are never generated with rocks.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2545 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index e36a13035e..e542da415e 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -6245,6 +6245,12 @@ bool player::cannot_act() const return (asleep() || paralysed()); } +bool player::can_throw_rocks() const +{ + return (species == SP_OGRE || species == SP_TROLL + || species == SP_OGRE_MAGE); +} + void player::put_to_sleep(int) { if (duration[DUR_BERSERKER] || asleep()) // No cumulative sleeps. |