summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/transfor.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-04-10 19:56:31 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-04-10 19:56:31 +0000
commit6f24f856327baae51e8f95ccbbd485bca3d81104 (patch)
tree19386dce2fac0336fe8b9ac80aa4cd00600426b3 /crawl-ref/source/transfor.cc
parent917bef7c3d30bd12dec1e817fda60d708f7e99a1 (diff)
downloadcrawl-ref-6f24f856327baae51e8f95ccbbd485bca3d81104.tar.gz
crawl-ref-6f24f856327baae51e8f95ccbbd485bca3d81104.zip
* Update descriptions as per Markus' patch.
* Make ignored prayer not take any turn. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9593 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/transfor.cc')
-rw-r--r--crawl-ref/source/transfor.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/crawl-ref/source/transfor.cc b/crawl-ref/source/transfor.cc
index 4724ef63f1..35aa8c5f1d 100644
--- a/crawl-ref/source/transfor.cc
+++ b/crawl-ref/source/transfor.cc
@@ -476,9 +476,9 @@ static void _transformation_expiration_warning()
}
}
-static bool _abort_or_fizzle()
+static bool _abort_or_fizzle(bool just_check)
{
- if (you.turn_is_over)
+ if (!just_check && you.turn_is_over)
{
canned_msg(MSG_SPELL_FIZZLES);
return (true); // pay the necessary costs
@@ -562,7 +562,7 @@ bool transform(int pow, transformation_type which_trans, bool force,
{
if (!force)
mpr("Your unliving flesh cannot be transformed in this way.");
- return (_abort_or_fizzle());
+ return (_abort_or_fizzle(just_check));
}
if (which_trans == TRAN_LICH && you.duration[DUR_DEATHS_DOOR])
@@ -572,13 +572,13 @@ bool transform(int pow, transformation_type which_trans, bool force,
mpr("The transformation conflicts with an enchantment "
"already in effect.");
}
- return (_abort_or_fizzle());
+ return (_abort_or_fizzle(just_check));
}
std::set<equipment_type> rem_stuff = _init_equipment_removal(which_trans);
if (_check_for_cursed_equipment(rem_stuff, which_trans, force))
- return (_abort_or_fizzle());
+ return (_abort_or_fizzle(just_check));
int str = 0, dex = 0, symbol = '@', colour = LIGHTGREY, xhp = 0, dur = 0;
const char* tran_name = "buggy";
@@ -669,7 +669,7 @@ bool transform(int pow, transformation_type which_trans, bool force,
if (check_transformation_stat_loss(rem_stuff, force,
std::max(-str, 0), std::max(-dex, 0)))
{
- return (_abort_or_fizzle());
+ return (_abort_or_fizzle(just_check));
}
// If we're just pretending return now.
@@ -677,7 +677,7 @@ bool transform(int pow, transformation_type which_trans, bool force,
return (true);
if (!force && _check_transformation_inscription_warning(rem_stuff))
- return (_abort_or_fizzle());
+ return (_abort_or_fizzle(just_check));
// All checks done, transformation will take place now.
you.redraw_evasion = true;