diff options
author | Shmuale Mark <shm.mark@gmail.com> | 2014-05-05 12:29:27 -0400 |
---|---|---|
committer | Shmuale Mark <shm.mark@gmail.com> | 2014-05-05 12:31:03 -0400 |
commit | c60bd48a684feb13338653d1ba17550a92e48199 (patch) | |
tree | ec655f614aefdb14ffbe5e2cf1eb5c3987677909 /crawl-ref/source/spl-clouds.cc | |
parent | d505f06e73b93a49d3582af59a41ae59f984a4a6 (diff) | |
download | crawl-ref-c60bd48a684feb13338653d1ba17550a92e48199.tar.gz crawl-ref-c60bd48a684feb13338653d1ba17550a92e48199.zip |
Remove two outdated functions from Control Winds.
It previously put out forest fires, which made sense in Forest but
is mostly a rare special case now. It also gave friendlies ENCH_WIND
_AIDED, which was supposed to increase their ranged accuracy. Since
spriggan air mages aren't around fauns and satyrs anymore, there's
no need for it.
I didn't actually remove the code for the effects of ENCH_WIND_AIDED,
since I couldn't find them. Either it was never actually implemented
or I was missing something obvious.
Diffstat (limited to 'crawl-ref/source/spl-clouds.cc')
-rw-r--r-- | crawl-ref/source/spl-clouds.cc | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/crawl-ref/source/spl-clouds.cc b/crawl-ref/source/spl-clouds.cc index fd6a7882b0..d96e5e6d24 100644 --- a/crawl-ref/source/spl-clouds.cc +++ b/crawl-ref/source/spl-clouds.cc @@ -400,13 +400,6 @@ void apply_control_winds(const monster* mon) for (int i = cloud_list.size() - 1; i >= 0; --i) { cloud_struct* cl = &env.cloud[cloud_list[i]]; - if (cl->type == CLOUD_FOREST_FIRE) - { - if (you.see_cell(cl->pos)) - mpr("The forest fire is smothered by the winds."); - delete_cloud(cloud_list[i]); - continue; - } // Leave clouds engulfing hostiles alone if (actor_at(cl->pos) && !mons_aligned(actor_at(cl->pos), mon)) @@ -456,22 +449,6 @@ void apply_control_winds(const monster* mon) } } } - - // Now give a ranged accuracy boost to nearby allies - for (monster_near_iterator mi(mon, LOS_NO_TRANS); mi; ++mi) - { - if (distance2(mon->pos(), mi->pos()) >= 33 || !mons_aligned(mon, *mi)) - continue; - - if (!mi->has_ench(ENCH_WIND_AIDED)) - mi->add_ench(mon_enchant(ENCH_WIND_AIDED, 1, mon, 20)); - else - { - mon_enchant aid = mi->get_ench(ENCH_WIND_AIDED); - aid.duration = 20; - mi->update_ench(aid); - } - } } random_pick_entry<cloud_type> cloud_cone_clouds[] = |