summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/transfor.h
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-03-31 07:05:53 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-03-31 07:05:53 +0000
commit20e25439cad6e0c97716e197bb2dceae731a9d24 (patch)
treed188c2b097b39976c6084a5619b5668dd823ada4 /crawl-ref/source/transfor.h
parent4f02417442109656263366ffcefd68231a0da7e9 (diff)
downloadcrawl-ref-20e25439cad6e0c97716e197bb2dceae731a9d24.tar.gz
crawl-ref-20e25439cad6e0c97716e197bb2dceae731a9d24.zip
Add some checks to Xom making you cast spells, so you don't attempt to
e.g. cast a branding spell, or a transformation that will fail for whatever reason. You may still occasionally get a "The spell fizzled" (or whatever) message but that should be rarer now. Apply the same fail chances for Detect Items as for Magic Mapping for fully explored levels, and for low severity make Summon Butterflies more likely to avoid endless attempts of casting Magic Mapping on fully explored levels. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9573 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/transfor.h')
-rw-r--r--crawl-ref/source/transfor.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/transfor.h b/crawl-ref/source/transfor.h
index 072b92a4f9..d9cc16f1bc 100644
--- a/crawl-ref/source/transfor.h
+++ b/crawl-ref/source/transfor.h
@@ -38,7 +38,8 @@ bool check_transformation_stat_loss(const std::set<equipment_type> &remove,
int dex_loss = 0, int int_loss = 0);
size_type transform_size(int psize = PSIZE_BODY);
-bool transform(int pow, transformation_type which_trans, bool quiet = false);
+bool transform(int pow, transformation_type which_trans, bool quiet = false,
+ bool just_check = false);
void remove_one_equip(equipment_type eq, bool meld = true);
void unmeld_one_equip(equipment_type eq);