From 2a48502991f0b10ff34a74463cc5216a3db85b3e Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 10 Jan 2010 13:54:00 -0600 Subject: allow bushes to be placed as well, at low chance --- crawl-ref/source/dungeon.cc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/dungeon.cc') 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 { -- cgit v1.2.3-54-g00ecf