summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/items.h
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2013-05-23 12:41:44 -0600
committerSteve Melenchuk <smelenchuk@gmail.com>2013-05-23 12:44:49 -0600
commit46bfda39a8d584164fa475188367f331314a644d (patch)
treeeaae16b02a2a6c422f75131ced6aa0f52864bf5b /crawl-ref/source/items.h
parentb23a7d84946192647e02fe0a1041763d8108f162 (diff)
downloadcrawl-ref-46bfda39a8d584164fa475188367f331314a644d.tar.gz
crawl-ref-46bfda39a8d584164fa475188367f331314a644d.zip
Track who destroys an item; incur Nemelex penance for deck destruction.
The framework here could be adopted to, say, give brownie points to Yredelemnul worshippers for destroying holy items, or other creative item-related god conducts. (More importantly, you can now reliably become an Unlucky Tengu. Hooray.)
Diffstat (limited to 'crawl-ref/source/items.h')
-rw-r--r--crawl-ref/source/items.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/items.h b/crawl-ref/source/items.h
index b9727ab08f..6ba587f2bf 100644
--- a/crawl-ref/source/items.h
+++ b/crawl-ref/source/items.h
@@ -37,7 +37,7 @@ void inc_inv_item_quantity(int obj, int amount, bool suppress_burden = false);
void inc_mitm_item_quantity(int obj, int amount);
bool move_item_to_grid(int *const obj, const coord_def& p,
- bool silent = false);
+ int agent = NON_MONSTER, bool silent = false);
void move_item_stack_to_grid(const coord_def& from, const coord_def& to);
void note_inscribe_item(item_def &item);
int move_item_to_player(int obj, int quant_got, bool quiet = false,
@@ -79,7 +79,8 @@ void item_list_on_square(vector<const item_def*>& items,
int obj, bool force_squelch = false);
bool copy_item_to_grid(const item_def &item, const coord_def& p,
- int quant_drop = -1, // item.quantity by default
+ int agent = NON_MONSTER, // who did this?
+ int quant_drop = -1, // item.quantity by default
bool mark_dropped = false,
bool silent = false);
coord_def item_pos(const item_def &item);