summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-death.cc
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2014-03-31 20:38:29 -0600
committerSteve Melenchuk <smelenchuk@gmail.com>2014-05-07 18:23:19 -0600
commit3ef11c3138aa1a63f592fa61dfc72a86bf76e61b (patch)
tree35e8086169e95be36147449680bfa397453fefda /crawl-ref/source/mon-death.cc
parent9351631d8478c6c4630496da9f381199f4ba8089 (diff)
downloadcrawl-ref-3ef11c3138aa1a63f592fa61dfc72a86bf76e61b.tar.gz
crawl-ref-3ef11c3138aa1a63f592fa61dfc72a86bf76e61b.zip
Gozag: gold lust.
Fighting near the gold piles of recently-defeated enemies boosts your skills.
Diffstat (limited to 'crawl-ref/source/mon-death.cc')
-rw-r--r--crawl-ref/source/mon-death.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-death.cc b/crawl-ref/source/mon-death.cc
index 8bbeb9fe29..3d82bc45c7 100644
--- a/crawl-ref/source/mon-death.cc
+++ b/crawl-ref/source/mon-death.cc
@@ -462,6 +462,7 @@ int place_monster_corpse(const monster* mons, bool player_or_pet, bool silent,
corpse.clear();
corpse.base_type = OBJ_GOLD;
corpse.quantity = base_gold / 2 + random2avg(base_gold, 2);
+ corpse.special = corpse.quantity;
item_colour(corpse);
}
@@ -493,6 +494,8 @@ int place_monster_corpse(const monster* mons, bool player_or_pet, bool silent,
}
move_item_to_grid(&o, mons->pos(), !mons->swimming());
+ if (mitm[o].base_type == OBJ_GOLD)
+ invalidate_agrid(true);
if (you.see_cell(mons->pos()))
{