summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/transform.h
diff options
context:
space:
mode:
authorJohanna Ploog <j-p-e-g@users.sourceforge.net>2011-04-04 22:25:46 +0200
committerJohanna Ploog <j-p-e-g@users.sourceforge.net>2011-04-04 22:31:40 +0200
commitfed893d2417a57f7e4b6daa6a3ba468280893631 (patch)
treed368ae76191848fd33f97aeafecc7b7ec4438759 /crawl-ref/source/transform.h
parent01f29a754433ae0067914e51aa0e33d88cf11fc5 (diff)
downloadcrawl-ref-fed893d2417a57f7e4b6daa6a3ba468280893631.tar.gz
crawl-ref-fed893d2417a57f7e4b6daa6a3ba468280893631.zip
Fix #2395: Disallow ending forms/levitation if it would cause drowning.
Diffstat (limited to 'crawl-ref/source/transform.h')
-rw-r--r--crawl-ref/source/transform.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/transform.h b/crawl-ref/source/transform.h
index 5d738610cc..a8b08f2adf 100644
--- a/crawl-ref/source/transform.h
+++ b/crawl-ref/source/transform.h
@@ -23,13 +23,16 @@ bool form_can_wear_item(const item_def& item,
bool can_equip(equipment_type use_which, bool ignore_temporary);
+bool feat_dangerous_for_form(transformation_type which_trans,
+ dungeon_feature_type feat);
bool transform(int pow, transformation_type which_trans, bool force = false,
bool just_check = false);
// skip_move: don't make player re-enter current cell
void untransform(bool skip_wielding = false, bool skip_move = false);
-size_type transform_size(int psize = PSIZE_BODY);
+size_type transform_size(int psize = PSIZE_BODY,
+ transformation_type form = you.form);
void remove_one_equip(equipment_type eq, bool meld = true,
bool mutation = false);