Dungeon Crawl Stone Soup Tracker - DCSS
|
Viewing Issue Advanced Details |
|
ID:
|
Category:
|
Severity:
|
Reproducibility:
|
Date Submitted:
|
Last Update:
|
8191 |
Patches |
feature |
N/A |
2014-02-22 01:35 |
2014-03-06 07:29 |
|
Reporter:
|
Sage |
Local or Remote:
|
Both |
|
Assigned To:
|
Kate |
Operating System:
|
All |
|
Priority:
|
normal |
Console or Tiles:
|
Both |
|
Status:
|
closed |
Product Branch:
|
0.14 ancient branch |
|
Product Version:
|
|
Resolution:
|
done |
|
Projection:
|
none |
|
|
|
ETA:
|
none |
Fixed in Branch:
|
0.14 ancient branch |
|
|
Summary:
|
0008191: Prevent autopickup on chunks dropped with auto_drop_chunks. |
Description:
|
Otherwise butchering giants and dragons breaks autoexplore. |
Steps To Reproduce:
|
|
Additional Information:
|
|
System Description:
|
|
Relationships | related to | 0005564 | closed | Kate | Autoexplore loop with auto_drop_chunks |
|
Attached Files:
|
chunk-autopickup.patch [^] (1,145 bytes) 2014-02-22 01:35 [Show Content] [Hide Content]From 07494a2dd11a61dd038d6437aa160379a2fd2d4f Mon Sep 17 00:00:00 2001
From: Sage <SageBasilMint@gmail.com>
Date: Fri, 21 Feb 2014 15:33:35 -0800
Subject: [PATCH] Prevent autopickup on chunks dropped with auto_drop_chunks.
---
crawl-ref/source/items.cc | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc
index 2224327..ee5ef19 100644
--- a/crawl-ref/source/items.cc
+++ b/crawl-ref/source/items.cc
@@ -2586,6 +2586,9 @@ bool item_needs_autopickup(const item_def &item)
if (item.props.exists("needs_autopickup"))
return true;
+ if (item.props.exists("prevent_autopickup"))
+ return false;
+
string itemname;
return _is_option_autopickup(item, itemname);
}
@@ -2890,6 +2893,8 @@ static void _do_autopickup()
clear_item_pickup_flags(mitm[o]);
const int result = move_item_to_player(o, num_to_take);
+ if (mitm[o].base_type == OBJ_FOOD && mitm[o].sub_type == FOOD_CHUNK)
+ mitm[o].props["prevent_autopickup"] = true;
if (result == 0 || result == -1)
{
--
1.7.9.5
chunk-autopickup-update.patch [^] (837 bytes) 2014-02-23 15:50 [Show Content] [Hide Content]From fb07cd8447d13624c7f30c01d2c2825bd93a2578 Mon Sep 17 00:00:00 2001
From: Sage <SageBasilMint@gmail.com>
Date: Fri, 21 Feb 2014 15:33:35 -0800
Subject: [PATCH] Prevent autopickup on chunks dropped with auto_drop_chunks.
---
crawl-ref/source/items.cc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc
index 2224327..4485977 100644
--- a/crawl-ref/source/items.cc
+++ b/crawl-ref/source/items.cc
@@ -2890,6 +2890,8 @@ static void _do_autopickup()
clear_item_pickup_flags(mitm[o]);
const int result = move_item_to_player(o, num_to_take);
+ if (mitm[o].base_type == OBJ_FOOD && mitm[o].sub_type == FOOD_CHUNK)
+ mitm[o].flags |= ISFLAG_DROPPED;
if (result == 0 || result == -1)
{
--
1.7.9.5
|
|
Issue History |
Date Modified |
Username |
Field |
Change |
2014-02-22 01:35 |
Sage |
New Issue |
|
2014-02-22 01:35 |
Sage |
File Added: chunk-autopickup.patch |
|
2014-02-23 14:43 |
Kate |
Relationship added |
related to 0005564 |
2014-02-23 15:50 |
Sage |
File Added: chunk-autopickup-update.patch |
|
2014-02-23 15:51 |
Sage |
Note Added: 0025381 |
|
2014-02-24 12:42 |
Kate |
Status |
new => resolved |
2014-02-24 12:42 |
Kate |
Fixed in Branch |
=> 0.14 development branch |
2014-02-24 12:42 |
Kate |
Resolution |
open => done |
2014-02-24 12:42 |
Kate |
Assigned To |
=> Kate |
2014-03-06 07:29 |
Sage |
Status |
resolved => closed |