From b2a6d5d74c14d9bba1c15240e762cbdfba9d9ad9 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Fri, 13 Jun 2008 22:29:02 +0000 Subject: 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 --- crawl-ref/source/transfor.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/transfor.h') 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 &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} -- cgit v1.2.3-54-g00ecf