summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/items.h
diff options
context:
space:
mode:
authorNicholas Feinberg <pleasingfung@gmail.com>2014-07-05 10:51:17 -0700
committerNicholas Feinberg <pleasingfung@gmail.com>2014-07-05 10:52:10 -0700
commitff848d38072d0c377905ec2e599ff212554bb85c (patch)
tree382649d02894a13b73971851688e2f397e92d9d1 /crawl-ref/source/items.h
parent1757ce470f8ac307fdf50e482b20f85febdffc2a (diff)
downloadcrawl-ref-ff848d38072d0c377905ec2e599ff212554bb85c.tar.gz
crawl-ref-ff848d38072d0c377905ec2e599ff212554bb85c.zip
Constify
Guarantee the invariance of various item pickup functions; move gozag gold aura removal to dec_mitm.
Diffstat (limited to 'crawl-ref/source/items.h')
-rw-r--r--crawl-ref/source/items.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/crawl-ref/source/items.h b/crawl-ref/source/items.h
index ab58927adf..5a7dde3d4f 100644
--- a/crawl-ref/source/items.h
+++ b/crawl-ref/source/items.h
@@ -42,7 +42,7 @@ bool move_item_to_grid(int *const obj, const coord_def& p,
void move_item_stack_to_grid(const coord_def& from, const coord_def& to);
void note_inscribe_item(item_def &item);
bool move_item_to_inv(int obj, int quant_got, bool quiet = false);
-bool merge_items_into_inv(item_def &it, int quant_got, int &inv_slot,
+bool merge_items_into_inv(const item_def &it, int quant_got, int &inv_slot,
bool quiet = false);
void mark_items_non_pickup_at(const coord_def &pos);
void mark_items_non_visit_at(const coord_def &pos);
@@ -50,9 +50,8 @@ void clear_item_pickup_flags(item_def &item);
bool is_stackable_item(const item_def &item);
bool items_similar(const item_def &item1, const item_def &item2);
bool items_stack(const item_def &item1, const item_def &item2);
-void merge_item_stacks(item_def &source, item_def &dest,
- int quant = -1);
-void get_gold(item_def& item, int quant, bool quiet);
+void merge_item_stacks(const item_def &source, item_def &dest, int quant = -1);
+void get_gold(const item_def& item, int quant, bool quiet);
item_def *find_floor_item(object_class_type cls, int sub_type);
int item_on_floor(const item_def &item, const coord_def& where);