diff options
author | Charles Otto <ottochar@gmail.com> | 2009-11-15 21:47:16 -0500 |
---|---|---|
committer | Charles Otto <ottochar@gmail.com> | 2009-11-15 23:47:00 -0500 |
commit | 809ee96dad841a541d55401d1ecf7b4c3b7ef05e (patch) | |
tree | b1c0b6486551cf078079313352271e81560ff46c /crawl-ref/source/traps.cc | |
parent | a647fb948535b182ce98246fc02b600d1990436a (diff) | |
download | crawl-ref-809ee96dad841a541d55401d1ecf7b4c3b7ef05e.tar.gz crawl-ref-809ee96dad841a541d55401d1ecf7b4c3b7ef05e.zip |
Delay adjustments for ring of fire
Update ring of fire's duration, also fix one use of DUR_REPEL I missed
previously.
Diffstat (limited to 'crawl-ref/source/traps.cc')
-rw-r--r-- | crawl-ref/source/traps.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/traps.cc b/crawl-ref/source/traps.cc index 0b9b1f7636..53313da1d5 100644 --- a/crawl-ref/source/traps.cc +++ b/crawl-ref/source/traps.cc @@ -1190,11 +1190,13 @@ void trap_def::shoot_ammo(actor& act, bool was_known) } else { + int repel_turns = you.duration[DUR_REPEL_MISSILES] + / BASELINE_DELAY; // Note that this uses full (not random2limit(foo,40)) // player_evasion. int your_dodge = you.melee_evasion(NULL) - 2 + (random2(you.dex) / 3) - + (you.duration[DUR_REPEL_MISSILES] * 10); + + (repel_turns * 10); // Check if it got past dodging. Deflect Missiles provides // immunity to such traps. |