From 94002884ec345eb4e7d6680d6ce26c9b3b0a245a Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sat, 14 Jul 2007 23:29:19 +0000 Subject: Vampires, yay! Credit mostly goes to Jarmo, though there are a few traces of things I've changed (that I've included and then commented out). There's still lots of stuff to be added, but they should be playable right now. I notice that their vampiric bite attack needs to be made more probable. Feel free to comment on anything that looks weird, is plain wrong, or goes against the spirit of Crawl/Stonesoup. Positive feedback will be appreciated as well. :) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1870 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/abl-show.cc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'crawl-ref/source/abl-show.cc') diff --git a/crawl-ref/source/abl-show.cc b/crawl-ref/source/abl-show.cc index c19f33abb7..2d962bc3a3 100644 --- a/crawl-ref/source/abl-show.cc +++ b/crawl-ref/source/abl-show.cc @@ -168,6 +168,7 @@ static const ability_def Ability_List[] = { ABIL_BREATHE_POWER, "Breathe Power", 0, 0, 125, 0, ABFLAG_BREATH }, { ABIL_BREATHE_STICKY_FLAME, "Breathe Sticky Flame", 0, 0, 125, 0, ABFLAG_BREATH }, { ABIL_BREATHE_STEAM, "Breathe Steam", 0, 0, 75, 0, ABFLAG_BREATH }, + { ABIL_TRAN_BAT, "Bat Form", 2, 0, 25, 0, ABFLAG_NONE }, { ABIL_SPIT_ACID, "Spit Acid", 0, 0, 125, 0, ABFLAG_BREATH }, @@ -507,6 +508,12 @@ static talent get_talent(ability_type ability, bool check_confused) case ABIL_FLY_II: // this is for draconians {dlb} failure = 45 - (you.experience_level + you.strength); break; + + case ABIL_TRAN_BAT: + invoc = true; + failure = 45 - (you.experience_level + you.skills[SK_INVOCATIONS]); +// perfect = true; + break; // end species abilties (some mutagenic) // begin demonic powers {dlb} @@ -1655,6 +1662,10 @@ static bool do_ability(const ability_def& abil) exercise(SK_INVOCATIONS, 2 + random2(4)); break; + case ABIL_TRAN_BAT: + transform(100, TRAN_BAT); + break; + case ABIL_RENOUNCE_RELIGION: if (yesno("Really renounce your faith, foregoing its fabulous benefits?") && yesno( "Are you sure you won't change your mind later?" )) @@ -1844,6 +1855,11 @@ std::vector your_talents( bool check_confused ) } } + if (you.species == SP_VAMPIRE && you.experience_level >= 3) + { + add_talent(talents, ABIL_TRAN_BAT, check_confused ); + } + //jmf: alternately put check elsewhere if ((you.level_type == LEVEL_DUNGEON && you.mutation[MUT_MAPPING]) || (you.level_type == LEVEL_PANDEMONIUM && you.mutation[MUT_MAPPING]==3)) -- cgit v1.2.3-54-g00ecf