diff options
author | Steve Melenchuk <smelenchuk@gmail.com> | 2014-05-06 10:28:20 -0600 |
---|---|---|
committer | Steve Melenchuk <smelenchuk@gmail.com> | 2014-05-07 18:23:33 -0600 |
commit | a29467d77113efbbde65e01978d3a23ae06ecb30 (patch) | |
tree | 597bc3a5a62b1f6fbce542cf48d066558f8a670d /crawl-ref/source/dungeon.cc | |
parent | fe8694ce61bd93657398bfb710cbb022ca7a0c9d (diff) | |
download | crawl-ref-a29467d77113efbbde65e01978d3a23ae06ecb30.tar.gz crawl-ref-a29467d77113efbbde65e01978d3a23ae06ecb30.zip |
Nudge Gozag's passive gold detection.
Fix other item being detected in place of gold (#8499); don't show the
message for it (elliptic).
Diffstat (limited to 'crawl-ref/source/dungeon.cc')
-rw-r--r-- | crawl-ref/source/dungeon.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc index 9204390017..b7e3d949c4 100644 --- a/crawl-ref/source/dungeon.cc +++ b/crawl-ref/source/dungeon.cc @@ -292,23 +292,22 @@ static void _count_gold() } else if (you_worship(GOD_GOZAG)) { - int detected_count = 0; for (unsigned int i = 0; i < gold_places.size(); i++) { bool detected = false; + int dummy = gold_piles[i]->link; coord_def &pos = gold_places[i]; + unlink_item(dummy); + move_item_to_grid(&dummy, pos, true); if (!env.map_knowledge(pos).item() || env.map_knowledge(pos).item()->base_type != OBJ_GOLD) { - detected_count++; detected = true; } update_item_at(pos, true); if (detected) env.map_knowledge(pos).flags |= MAP_DETECTED_ITEM; } - if (detected_count) - mprf(MSGCH_GOD, "You feel very greedy and sense gold!"); } } |