diff options
author | DracoOmega <draco_omega@live.com> | 2014-03-19 21:40:33 -0230 |
---|---|---|
committer | DracoOmega <draco_omega@live.com> | 2014-03-20 02:27:30 -0230 |
commit | b2ae9cb582a580f5ddb699ab0c45285b7f0cdebe (patch) | |
tree | 08a3a8ac14dda3e325a3af96c376f33a8c72f037 /crawl-ref/source/spl-damage.cc | |
parent | b225740e60c07fbfc85a9d61cbf7c11ffd734308 (diff) | |
download | crawl-ref-b2ae9cb582a580f5ddb699ab0c45285b7f0cdebe.tar.gz crawl-ref-b2ae9cb582a580f5ddb699ab0c45285b7f0cdebe.zip |
Some tweaks to monster OTR
Make monster OTR last longer, but prevent monsters from refreshing it
while active (which should make them a bit more effective, and also
flash the screen much less). Increase the amount of poison damage
inflicted by it upon players.
Diffstat (limited to 'crawl-ref/source/spl-damage.cc')
-rw-r--r-- | crawl-ref/source/spl-damage.cc | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/crawl-ref/source/spl-damage.cc b/crawl-ref/source/spl-damage.cc index 2763adb2ac..603809fe55 100644 --- a/crawl-ref/source/spl-damage.cc +++ b/crawl-ref/source/spl-damage.cc @@ -2787,19 +2787,11 @@ spret_type cast_toxic_radiance(actor *agent, int pow, bool fail, bool mon_tracer else { monster* mon_agent = agent->as_monster(); - if (!mon_agent->has_ench(ENCH_TOXIC_RADIANCE)) - { - simple_monster_message(mon_agent, - " begins to radiate toxic energy."); - } - else if (you.can_see(mon_agent)) - { - mprf("%s toxic radiance grows in intensity.", - mon_agent->name(DESC_ITS).c_str()); - } + simple_monster_message(mon_agent, + " begins to radiate toxic energy."); mon_agent->add_ench(mon_enchant(ENCH_TOXIC_RADIANCE, 1, mon_agent, - (3 + random2(pow/20)) * BASELINE_DELAY)); + (5 + random2avg(pow/15, 2)) * BASELINE_DELAY)); targetter_los hitfunc(mon_agent, LOS_NO_TRANS); flash_view_delay(GREEN, 300, &hitfunc); @@ -2853,7 +2845,7 @@ void toxic_radiance_effect(actor* agent, int mult) "by Olgreb's Toxic Radiance", true, agent->as_monster()->name(DESC_A).c_str()); - poison_player(dam * 2 / 3, agent->name(DESC_A), "toxic radiance", + poison_player(dam * 4 / 3, agent->name(DESC_A), "toxic radiance", false); } else |