diff options
author | Charles Otto <ottochar@gmail.com> | 2009-10-23 19:47:56 -0400 |
---|---|---|
committer | Charles Otto <ottochar@gmail.com> | 2009-10-25 14:44:42 -0400 |
commit | 77620b7075494d78dda86ab8f69fd777d2e9eb37 (patch) | |
tree | 5778195be2fe276aa2f86a3a0e6b4a6f9f1d8c2d /crawl-ref/source/spells2.cc | |
parent | ff071c7f1a5e5b7cb3b994297e46168acae30a7e (diff) | |
download | crawl-ref-77620b7075494d78dda86ab8f69fd777d2e9eb37.tar.gz crawl-ref-77620b7075494d78dda86ab8f69fd777d2e9eb37.zip |
Preliminarily add a new fungus species to replace fungus w.r.t. spores
Add a fungus species ('ballistomycete') to use in place of fungus in
spores explosions etc.
Fix a couple message leaks (wrong version of see_cell used in
monaters::apply_enchantment)
Diffstat (limited to 'crawl-ref/source/spells2.cc')
-rw-r--r-- | crawl-ref/source/spells2.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc index c3e553e950..e04e780531 100644 --- a/crawl-ref/source/spells2.cc +++ b/crawl-ref/source/spells2.cc @@ -2045,7 +2045,8 @@ void path_distance(coord_def & origin, if (!temp || (temp->attitude == ATT_HOSTILE && temp->mons_species() != MONS_PLANT && temp->mons_species() != MONS_TOADSTOOL - && temp->mons_species() != MONS_FUNGUS)) + && temp->mons_species() != MONS_FUNGUS + && temp->mons_species() != MONS_BALLISTOMYCETE)) { fringe.push(point_distance(*adj_it, current.second+1)); } @@ -2416,13 +2417,14 @@ bool _possible_evolution(monsters * input, break; case MONS_FUNGUS: + case MONS_BALLISTOMYCETE: possible_monster.cost = fungus_cost; possible_monster.new_type = MONS_WANDERING_MUSHROOM; break; case MONS_TOADSTOOL: possible_monster.cost = toadstool_cost; - possible_monster.new_type = MONS_FUNGUS; + possible_monster.new_type = MONS_BALLISTOMYCETE; break; default: @@ -2503,6 +2505,7 @@ bool evolve_flora() break; case MONS_FUNGUS: + case MONS_BALLISTOMYCETE: fungi_evolved++; break; @@ -2523,7 +2526,7 @@ bool evolve_flora() current_plant->del_ench(ENCH_SLOWLY_DYING); current_plant->del_ench(ENCH_SPORE_PRODUCTION); - if (current_plant->mons_species() == MONS_FUNGUS) + if (current_plant->mons_species() == MONS_BALLISTOMYCETE) current_plant->add_ench(ENCH_SPORE_PRODUCTION); // Maybe we can upgrade it again? |