summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/transfor.cc
diff options
context:
space:
mode:
authorCharles Otto <ottochar@gmail.com>2009-11-15 01:14:09 -0500
committerCharles Otto <ottochar@gmail.com>2009-11-15 23:46:28 -0500
commit3a9d60e74902be7b9b196808cb1a88aa03ea84c3 (patch)
treee584e6138a749a44139536f8462fabfc78963adb /crawl-ref/source/transfor.cc
parentbd50c076d36322b58a7231a2300d1f391846da87 (diff)
downloadcrawl-ref-3a9d60e74902be7b9b196808cb1a88aa03ea84c3.tar.gz
crawl-ref-3a9d60e74902be7b9b196808cb1a88aa03ea84c3.zip
Moidfy DUR_TRANSFORMATION to be delay based.
Diffstat (limited to 'crawl-ref/source/transfor.cc')
-rw-r--r--crawl-ref/source/transfor.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/transfor.cc b/crawl-ref/source/transfor.cc
index 716dba0c9c..ae5f5e1221 100644
--- a/crawl-ref/source/transfor.cc
+++ b/crawl-ref/source/transfor.cc
@@ -550,7 +550,7 @@ bool transform(int pow, transformation_type which_trans, bool force,
if (you.attribute[ATTR_TRANSFORMATION]
== static_cast<unsigned>(which_trans))
{
- if (you.duration[DUR_TRANSFORMATION] < 100)
+ if (you.duration[DUR_TRANSFORMATION] < 100 * BASELINE_DELAY)
{
if (just_check)
return (true);
@@ -559,10 +559,10 @@ bool transform(int pow, transformation_type which_trans, bool force,
mpr("You feel you'll be a pig longer.");
else
mpr("You extend your transformation's duration.");
- you.duration[DUR_TRANSFORMATION] += random2(pow);
+ you.duration[DUR_TRANSFORMATION] += random2(pow) * BASELINE_DELAY;
- if (you.duration[DUR_TRANSFORMATION] > 100)
- you.duration[DUR_TRANSFORMATION] = 100;
+ if (you.duration[DUR_TRANSFORMATION] > 100 * BASELINE_DELAY)
+ you.duration[DUR_TRANSFORMATION] = 100 * BASELINE_DELAY;
return (true);
}
@@ -756,7 +756,7 @@ bool transform(int pow, transformation_type which_trans, bool force,
// Update your status.
you.attribute[ATTR_TRANSFORMATION] = which_trans;
- you.duration[DUR_TRANSFORMATION] = dur;
+ you.duration[DUR_TRANSFORMATION] = dur * BASELINE_DELAY;
you.symbol = symbol;
you.colour = colour;