diff options
author | Jesse Luehrs <doy@tozt.net> | 2010-01-10 13:54:00 -0600 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2010-01-10 13:54:23 -0600 |
commit | 2a48502991f0b10ff34a74463cc5216a3db85b3e (patch) | |
tree | cdbb2cfc89be0a3e5387f85fed4f6b91bcf198f0 /crawl-ref/source/dungeon.cc | |
parent | c5f8606a36bad92d01f0672ccdf7b647e4ddde02 (diff) | |
download | crawl-ref-2a48502991f0b10ff34a74463cc5216a3db85b3e.tar.gz crawl-ref-2a48502991f0b10ff34a74463cc5216a3db85b3e.zip |
allow bushes to be placed as well, at low chance
Diffstat (limited to 'crawl-ref/source/dungeon.cc')
-rw-r--r-- | crawl-ref/source/dungeon.cc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc index 168cb760d0..52a527361e 100644 --- a/crawl-ref/source/dungeon.cc +++ b/crawl-ref/source/dungeon.cc @@ -7778,10 +7778,12 @@ static void _ruin_level() grd(*it) = DNGN_FLOOR; } - /* replace some ruined walls with plants/fungi */ + /* replace some ruined walls with plants/fungi/bushes */ if (one_chance_in(5)) { mgen_data mg; - mg.cls = coinflip() ? MONS_PLANT : MONS_FUNGUS; + mg.cls = one_chance_in(20) ? MONS_BUSH : + coinflip() ? MONS_PLANT : + MONS_FUNGUS; mg.pos = *it; mons_place(mgen_data(mg)); } @@ -7797,8 +7799,9 @@ static void _add_plant_clumps() { /* clump plants around things that already exist */ monster_type type = menv[mgrd(*ri)].type; - if ((type == MONS_PLANT || type == MONS_FUNGUS) && - one_chance_in(10)) { + if ((type == MONS_PLANT || + type == MONS_FUNGUS || + type == MONS_BUSH) && one_chance_in(10)) { mg.cls = type; } else { |