diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-13 22:29:02 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-13 22:29:02 +0000 |
commit | b2a6d5d74c14d9bba1c15240e762cbdfba9d9ad9 (patch) | |
tree | 9a6963410bca0be84c6b842888f8d7ff0a989cb8 /crawl-ref/source/transfor.h | |
parent | 283f9ec90a56293ddece4c5274d72164a3c003d7 (diff) | |
download | crawl-ref-b2a6d5d74c14d9bba1c15240e762cbdfba9d9ad9.tar.gz crawl-ref-b2a6d5d74c14d9bba1c15240e762cbdfba9d9ad9.zip |
Re-enable batform when drawing the Metamorphosis card but add a
fail-safe mechanism for *any* transformation to abort if it would
cause death by stat loss. (For other transformations this could
happen because of the auto-removal of statboosting equipment.)
Note that the Flight card already has a chance of turning you into
a bat (or a spider). Of course the same applies here, as well as
when casting spells.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5791 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/transfor.h')
-rw-r--r-- | crawl-ref/source/transfor.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/transfor.h b/crawl-ref/source/transfor.h index 933f512cb8..b701f5fdae 100644 --- a/crawl-ref/source/transfor.h +++ b/crawl-ref/source/transfor.h @@ -49,15 +49,15 @@ void untransform(void); * *********************************************************************** */ bool can_equip(equipment_type use_which, bool ignore_temporary); bool check_transformation_stat_loss(const std::set<equipment_type> &remove, - int str_loss = 0, int dex_loss = 0, - int int_loss = 0, bool quiet = false); + bool quiet = false, int str_loss = 0, + int dex_loss = 0, int int_loss = 0); size_type transform_size(int psize = PSIZE_BODY); // last updated 12may2000 {dlb} /* *********************************************************************** * called from: ability - spell * *********************************************************************** */ -bool transform(int pow, transformation_type which_trans); +bool transform(int pow, transformation_type which_trans, bool quiet = false); // last updated 12may2000 {dlb} |