diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-06-29 19:44:39 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-06-29 19:44:39 +0000 |
commit | e66c77b50df3c0c91837b52b9e61c8235a96c685 (patch) | |
tree | e780b4b6696564f4cf3a5763987bd776ff064537 /crawl-ref/source/monplace.cc | |
parent | 4dc30336a62ec7e8261253fc0b9c0674efda1555 (diff) | |
download | crawl-ref-e66c77b50df3c0c91837b52b9e61c8235a96c685.tar.gz crawl-ref-e66c77b50df3c0c91837b52b9e61c8235a96c685.zip |
Apply caotto's neat patch to make toadstools grow on or around corpses.
Obviously, this might affect food balance and Necromancy. Tweaks may be
necessary, but overall this looks good.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10077 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monplace.cc')
-rw-r--r-- | crawl-ref/source/monplace.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/crawl-ref/source/monplace.cc b/crawl-ref/source/monplace.cc index 4e56354e58..93d59b44a8 100644 --- a/crawl-ref/source/monplace.cc +++ b/crawl-ref/source/monplace.cc @@ -1101,6 +1101,16 @@ static int _place_monster_aux(const mgen_data &mg, if (mg.cls == MONS_GLOWING_SHAPESHIFTER) menv[id].add_ench(ENCH_GLOWING_SHAPESHIFTER); + if (mg.cls == MONS_TOADSTOOL) + { + // This enchantment is a timer that counts down until death. + // These mushrooms should last longer than the lifespan of a corpse + // (to avoid spawning mushrooms in the same place over and over), aside + // from that the value is slightly randomized to avoid simultaneous + // die-offs of mushroom rings. + menv[id].add_ench(ENCH_SLOWLY_DYING); + } + if (monster_can_submerge(&menv[id], grd(fpos)) && !one_chance_in(5)) menv[id].add_ench(ENCH_SUBMERGED); |