diff options
author | Neil Moore <neil@s-z.org> | 2014-07-22 11:43:52 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2014-07-22 11:44:02 -0400 |
commit | a15b4ee69f6899c85c1ba213a6e7b16840b0c073 (patch) | |
tree | 9c4b1fdf355e10633eae84ebabb6190b9e3e57a2 /crawl-ref/source/mutation.cc | |
parent | 4ca748e7cfcc589820446e6a400b2c4d6709efb2 (diff) | |
download | crawl-ref-a15b4ee69f6899c85c1ba213a6e7b16840b0c073.tar.gz crawl-ref-a15b4ee69f6899c85c1ba213a6e7b16840b0c073.zip |
Remove a now unused function (geekosaur)
Not sure how I missed this in 0.15-a0-2194-g98569aa.
Diffstat (limited to 'crawl-ref/source/mutation.cc')
-rw-r--r-- | crawl-ref/source/mutation.cc | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/crawl-ref/source/mutation.cc b/crawl-ref/source/mutation.cc index 8eca564f37..fb8bbd6509 100644 --- a/crawl-ref/source/mutation.cc +++ b/crawl-ref/source/mutation.cc @@ -232,41 +232,6 @@ static int _num_full_suppressed = 0; static int _num_part_suppressed = 0; static int _num_transient = 0; -// Can the player transform? Returns true if the player is ever capable -// of transforming (i.e. not a mummy or ghoul) and either: is transformed -// (ignoring blade hands and appendage), is a vampire of sufficient level -// to use bat form, or has a form-change spell (again, other than blade hands -// and beastly appendage) memorised. -static bool _player_can_transform() -{ - if (you.species == SP_MUMMY || you.species == SP_GHOUL) - return false; - - if (form_changed_physiology()) - return true; - - // Bat form - if (you.species == SP_VAMPIRE && you.experience_level >= 3) - return true; - - for (int i = 0; i < MAX_KNOWN_SPELLS; i++) - { - switch (you.spells[i]) - { - case SPELL_SPIDER_FORM: - case SPELL_ICE_FORM: - case SPELL_STATUE_FORM: - case SPELL_DRAGON_FORM: - case SPELL_NECROMUTATION: - return true; - default: - break; - } - } - - return false; -} - static string _annotate_form_based(string desc, bool suppressed) { if (suppressed) |