summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/items.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-02 19:25:57 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-02 19:25:57 +0000
commita065b3c3384ff85750be7126ffbb3f2df5f2d375 (patch)
treed31917f236555906158fdeb77ae5c1665030dc8f /crawl-ref/source/items.h
parent79b728ec3b58721a1cad10f26f3f1d8fb259a254 (diff)
downloadcrawl-ref-a065b3c3384ff85750be7126ffbb3f2df5f2d375.tar.gz
crawl-ref-a065b3c3384ff85750be7126ffbb3f2df5f2d375.zip
Experimental monster weapon swapping implementation. Allow monsters to use
throwing weapons (hand axes, spears, clubs, daggers). Give orcs and orc warriors a chance of being generated with throwing weapons (axes or spears). Throwing weapons are stacked in monster inventory, but unstack when dropped. We may want to consider fully stackable throwing weapons at some point. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1717 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/items.h')
-rw-r--r--crawl-ref/source/items.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/items.h b/crawl-ref/source/items.h
index e16d756ee3..d5953b523b 100644
--- a/crawl-ref/source/items.h
+++ b/crawl-ref/source/items.h
@@ -29,7 +29,8 @@ void move_item_to_grid( int *const obj, int x, int y );
void move_item_stack_to_grid( int x, int y, int targ_x, int targ_y );
int move_item_to_player( int obj, int quant_got, bool quiet = false );
bool is_stackable_item( const item_def &item );
-bool items_stack( const item_def &item1, const item_def &item2 );
+bool items_stack( const item_def &item1, const item_def &item2,
+ bool force = false );
item_def find_item_type(object_class_type base_type, std::string name);