diff options
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); |