diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-08 19:47:40 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-08 19:47:40 +0000 |
commit | a8d638664c1066411b026ca06838b169984e078d (patch) | |
tree | 30fc8a958e2d63be10030c9685fb946c8f0a502a /crawl-ref/source/spells2.cc | |
parent | 95e59f96be707defda5bc535d5e72b2f96fc0b21 (diff) | |
download | crawl-ref-a8d638664c1066411b026ca06838b169984e078d.tar.gz crawl-ref-a8d638664c1066411b026ca06838b169984e078d.zip |
Reorganize again, and move cast_summon_wraiths() to spells3.cc, since
it's a necromantic spell.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5604 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells2.cc')
-rw-r--r-- | crawl-ref/source/spells2.cc | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc index 0b1326f41a..0d3ed1ac08 100644 --- a/crawl-ref/source/spells2.cc +++ b/crawl-ref/source/spells2.cc @@ -2163,45 +2163,6 @@ bool cast_summon_greater_demon(int pow, bool god_gift) return (success); } -bool cast_summon_wraiths(int pow, bool god_gift) -{ - bool success = false; - - const int chance = random2(25); - monster_type mon = ((chance > 8) ? MONS_WRAITH : // 64% - (chance > 3) ? MONS_FREEZING_WRAITH // 20% - : MONS_SPECTRAL_WARRIOR); // 16% - - const bool friendly = (random2(pow) > 5); - - if (create_monster( - mgen_data(mon, - friendly ? BEH_FRIENDLY : BEH_HOSTILE, - 5, you.pos(), - friendly ? you.pet_target : MHITYOU, - god_gift ? MF_GOD_GIFT : 0)) != -1) - { - success = true; - - mprf("%s", - friendly ? "An insubstantial figure forms in the air." - : "You sense a hostile presence."); - } - else - canned_msg(MSG_NOTHING_HAPPENS); - - //jmf: Kiku sometimes deflects this - if (!(you.religion == GOD_KIKUBAAQUDGHA - && (!player_under_penance() - && you.piety >= piety_breakpoint(3) - && you.piety > random2(MAX_PIETY)))) - { - disease_player(25 + random2(50)); - } - - return (success); -} - bool cast_summon_dragon(int pow, bool god_gift) { // Removed the chance of multiple dragons... one should be more |