summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-17 21:02:13 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-17 21:02:13 +0000
commitcba36e09a9f04f7e691fac4f1c720c9935227298 (patch)
tree776c117b04216422ef4b806749916bdfa1ba0c27 /crawl-ref/source/item_use.cc
parent2d63ab533a35163bf93d03f5db33b5ed8ec5a2ea (diff)
downloadcrawl-ref-cba36e09a9f04f7e691fac4f1c720c9935227298.tar.gz
crawl-ref-cba36e09a9f04f7e691fac4f1c720c9935227298.zip
Clean up handling of thrown items (mostly large rocks) again.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7467 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index 3cfb3de676..4b472bb6a5 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -1847,7 +1847,7 @@ bool throw_it(bolt &pbolt, int throw_2, bool teleport, int acc_bonus,
{
range = 1 + random2( you.strength / 5 );
max_range = you.strength / 5;
- if (you.can_throw_rocks())
+ if (you.can_throw_large_rocks())
{
range += random_range(4, 7);
max_range += 7;
@@ -2342,7 +2342,7 @@ bool throw_it(bolt &pbolt, int throw_2, bool teleport, int acc_bonus,
switch (wepType)
{
case MI_LARGE_ROCK:
- if (you.can_throw_rocks())
+ if (you.can_throw_large_rocks())
baseHit = 1;
break;
case MI_DART:
@@ -4848,8 +4848,7 @@ void tile_item_use_secondary(int idx)
{
const item_def item = you.inv[idx];
- if (item.base_type == OBJ_WEAPONS
- && is_throwable(item, you.body_size()))
+ if (item.base_type == OBJ_WEAPONS && is_throwable(&you, item))
{
if (check_warning_inscriptions(item, OPER_FIRE))
fire_thing(idx); // fire weapons