summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/actor.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-11-06 18:34:28 +0100
committerAdam Borowski <kilobyte@angband.pl>2013-11-06 18:39:02 +0100
commit415669d7ad597855086ca2e0c07d219b6e0e8e9b (patch)
tree88c3239634153fbaed8bd891025cc0818ef5331f /crawl-ref/source/actor.cc
parent9c199ebd5f80cafa670c0df01702ce7dc5dfc1d9 (diff)
parented4c75b69af01a021233cc3f9255223ad299fe8c (diff)
downloadcrawl-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.cc6
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.