diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-11-06 18:34:28 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-11-06 18:39:02 +0100 |
commit | 415669d7ad597855086ca2e0c07d219b6e0e8e9b (patch) | |
tree | 88c3239634153fbaed8bd891025cc0818ef5331f /crawl-ref/source/actor.cc | |
parent | 9c199ebd5f80cafa670c0df01702ce7dc5dfc1d9 (diff) | |
parent | ed4c75b69af01a021233cc3f9255223ad299fe8c (diff) | |
download | crawl-ref-415669d7ad597855086ca2e0c07d219b6e0e8e9b.tar.gz crawl-ref-415669d7ad597855086ca2e0c07d219b6e0e8e9b.zip |
Merge branch 'dwants'. Bring some Raid.
Diffstat (limited to 'crawl-ref/source/actor.cc')
-rw-r--r-- | crawl-ref/source/actor.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/actor.cc b/crawl-ref/source/actor.cc index 1b84595e45..1d9f518431 100644 --- a/crawl-ref/source/actor.cc +++ b/crawl-ref/source/actor.cc @@ -61,6 +61,12 @@ bool actor::stand_on_solid_ground() const && !feat_is_water(grd(pos())); } +// Give hands required to wield weapon. +hands_reqd_type actor::hands_reqd(const item_def &item) const +{ + return basic_hands_reqd(item, body_size()); +} + /** * Wrapper around the virtual actor::can_wield(const item_def&,bool,bool,bool,bool) const overload. * @param item May be NULL, in which case a dummy item will be passed in. |