diff options
author | Chris Campbell <chriscampbell89@gmail.com> | 2014-07-23 05:03:43 +0100 |
---|---|---|
committer | Chris Campbell <chriscampbell89@gmail.com> | 2014-07-23 07:05:21 +0100 |
commit | 603939af70ec593653f9cd693764068f71aef34b (patch) | |
tree | b91f80e2c9739e8cc7c6ea6bf737cc21e4643e91 /crawl-ref/source/transform.cc | |
parent | b62d1063ba2c848a43ec9d01fa300eeb48055f6d (diff) | |
download | crawl-ref-603939af70ec593653f9cd693764068f71aef34b.tar.gz crawl-ref-603939af70ec593653f9cd693764068f71aef34b.zip |
Make Sublimation of Blood only effective when cast on the player
Having a spell work in two completely different ways depending on context
is unintuitive, and self-casting it is the much more interesting use.
Makes the spell unmemorisable for species without blood (Gargoyle, Ghoul,
Mummy). Species that can't bleed get both level 1 spells from the first
Kiku gift. Has some ugly duplication of lists of species that can't bleed,
because using player::can_bleed won't correctly handle statue- or lich-
formed players even with allow_tran = false, due to them changing the
player's holiness.
Diffstat (limited to 'crawl-ref/source/transform.cc')
-rw-r--r-- | crawl-ref/source/transform.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/transform.cc b/crawl-ref/source/transform.cc index 2a4eb7e091..f1f1417c31 100644 --- a/crawl-ref/source/transform.cc +++ b/crawl-ref/source/transform.cc @@ -150,6 +150,14 @@ bool form_changed_physiology(transformation_type form) && form != TRAN_BLADE_HANDS; } +bool form_can_bleed(transformation_type form) +{ + return form != TRAN_STATUE && form != TRAN_ICE_BEAST + && form != TRAN_SPIDER && form != TRAN_TREE + && form != TRAN_FUNGUS && form != TRAN_PORCUPINE + && form != TRAN_SHADOW && form != TRAN_LICH; +} + bool form_can_use_wand(transformation_type form) { return form_can_wield(form) || form == TRAN_DRAGON; |