diff options
author | Charles Otto <ottochar@gmail.com> | 2009-11-15 21:23:06 -0500 |
---|---|---|
committer | Charles Otto <ottochar@gmail.com> | 2009-11-15 23:46:59 -0500 |
commit | a647fb948535b182ce98246fc02b600d1990436a (patch) | |
tree | a99e193244a55d7906ddaacc034fceeac6545efe /crawl-ref/source/spells1.cc | |
parent | e18e5ec63e4656efb3bfcf3d0dd56cba0d3084c7 (diff) | |
download | crawl-ref-a647fb948535b182ce98246fc02b600d1990436a.tar.gz crawl-ref-a647fb948535b182ce98246fc02b600d1990436a.zip |
Delay adjustment for death's door
Also update 1 use of DUR_PARALYSIS I missed previously.
Diffstat (limited to 'crawl-ref/source/spells1.cc')
-rw-r--r-- | crawl-ref/source/spells1.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc index 370427be29..05c7452fa7 100644 --- a/crawl-ref/source/spells1.cc +++ b/crawl-ref/source/spells1.cc @@ -1115,11 +1115,11 @@ void cast_deaths_door(int pow) set_hp( allowed_deaths_door_hp(), false ); deflate_hp( you.hp_max, false ); - you.duration[DUR_DEATHS_DOOR] = 10 + random2avg(13, 3) - + (random2(pow) / 10); + you.set_duration(DUR_DEAHTS_DOOR, 10 + random2avg(13, 3) + + (random2(pow) / 10)); - if (you.duration[DUR_DEATHS_DOOR] > 25) - you.duration[DUR_DEATHS_DOOR] = 23 + random2(5); + if (you.duration[DUR_DEATHS_DOOR] > 25 * BASELINE_DELAY) + you.duration[DUR_DEATHS_DOOR] = (23 + random2(5)) * BASELINE_DELAY; } return; |