diff options
Diffstat (limited to 'crawl-ref/source')
-rw-r--r-- | crawl-ref/source/items.cc | 3 | ||||
-rw-r--r-- | crawl-ref/source/misc.cc | 25 |
2 files changed, 14 insertions, 14 deletions
diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc index ccce30d015..7ee40289ca 100644 --- a/crawl-ref/source/items.cc +++ b/crawl-ref/source/items.cc @@ -2235,8 +2235,7 @@ bool item_needs_autopickup(const item_def &item) std::string itemname; return ((Options.autopickups & (1L << item.base_type) - && !is_useless_item(item) && !is_inedible(item) - || _is_forced_autopickup(item, itemname)) + || _is_forced_autopickup(item, itemname)) && (Options.pickup_dropped || !(item.flags & ISFLAG_DROPPED)) && !_is_denied_autopickup(item, itemname)); } diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc index 4dd1b21753..f5be8ee92e 100644 --- a/crawl-ref/source/misc.cc +++ b/crawl-ref/source/misc.cc @@ -611,18 +611,19 @@ bool maybe_coagulate_blood_potions_inv(item_def &blood) if (freeslot >= 0 && freeslot < ENDOFPACK && !is_valid_item(you.inv[freeslot])) { - item_def &item = you.inv[freeslot]; - item.link = freeslot; - item.slot = index_to_letter(item.link); - item.base_type = OBJ_POTIONS; - item.sub_type = POT_BLOOD_COAGULATED; - item.quantity = coag_count; - item.x = -1; - item.y = -1; - item.plus = 0; - item.plus2 = 0; - item.special = 0; - item.flags = 0; + item_def &item = you.inv[freeslot]; + item.link = freeslot; + item.slot = index_to_letter(item.link); + item.base_type = OBJ_POTIONS; + item.sub_type = POT_BLOOD_COAGULATED; + item.quantity = coag_count; + item.x = -1; + item.y = -1; + item.plus = 0; + item.plus2 = 0; + item.special = 0; + item.flags = 0; + item.inscription = ""; item_colour(item); CrawlHashTable &props_new = item.props; |