diff options
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index d40d691bb6..ae2b6f621e 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -916,8 +916,9 @@ int player_hunger_rate(void) hunger += 2 * player_equip_ego_type( EQ_WEAPON, SPWPN_VAMPIRES_TOOTH ); } - // troll leather armour - hunger += player_equip( EQ_BODY_ARMOUR, ARM_TROLL_LEATHER_ARMOUR ); + // troll leather armour + if (you.species != SP_TROLL) + hunger += player_equip( EQ_BODY_ARMOUR, ARM_TROLL_LEATHER_ARMOUR ); // randarts hunger += scan_randarts(RAP_METABOLISM); @@ -5850,6 +5851,12 @@ void player::moveto(const coord_def &c) dungeon_events.fire_position_event(DET_PLAYER_MOVED, c); } +bool player::can_throw_rocks() const +{ + return (species == SP_OGRE || species == SP_TROLL + || species == SP_OGRE_MAGE); +} + //////////////////////////////////////////////////////////////////////////// PlaceInfo::PlaceInfo() |