summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/abl-show.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-09 14:50:32 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-09 14:50:32 +0000
commiteb847d5f2f0331435f6bc081d1009bdf3982fd31 (patch)
tree9556614ea500aa7883214e54d0d745edaa623746 /crawl-ref/source/abl-show.cc
parent85b02c94b3646a5201a7c45b742a4164821bfa87 (diff)
downloadcrawl-ref-eb847d5f2f0331435f6bc081d1009bdf3982fd31.tar.gz
crawl-ref-eb847d5f2f0331435f6bc081d1009bdf3982fd31.zip
Nemelex now uses Evocations instead of Invocations.
Nemelex abilities now have failure rates, are godly abilities (oops), and train Evocations. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1820 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/abl-show.cc')
-rw-r--r--crawl-ref/source/abl-show.cc19
1 files changed, 18 insertions, 1 deletions
diff --git a/crawl-ref/source/abl-show.cc b/crawl-ref/source/abl-show.cc
index 05a75e815c..e693b3f8da 100644
--- a/crawl-ref/source/abl-show.cc
+++ b/crawl-ref/source/abl-show.cc
@@ -687,6 +687,21 @@ static talent get_talent(ability_type ability, bool check_confused)
failure = 80 - (you.piety / 25) - (you.skills[SK_INVOCATIONS] * 4);
break;
+ case ABIL_NEMELEX_STACK_DECK:
+ invoc = true;
+ failure = 80 - (you.piety / 25) - (4 * you.skills[SK_EVOCATIONS]);
+ break;
+
+ case ABIL_NEMELEX_PEEK:
+ invoc = true;
+ failure = 40 - (you.piety / 20) - (5 * you.skills[SK_EVOCATIONS]);
+ break;
+
+ case ABIL_NEMELEX_TRIPLE_DRAW:
+ invoc = true;
+ failure = 60 - (you.piety / 20) - (5 * you.skills[SK_EVOCATIONS]);
+ break;
+
//jmf: following for to-be-created gods
case ABIL_CHARM_SNAKE:
invoc = true;
@@ -732,7 +747,6 @@ static talent get_talent(ability_type ability, bool check_confused)
result.is_invocation = invoc;
return result;
-
}
std::vector<const char*> get_ability_names()
@@ -1567,16 +1581,19 @@ static bool do_ability(const ability_def& abil)
case ABIL_NEMELEX_TRIPLE_DRAW:
if ( !deck_triple_draw() )
return false;
+ exercise(SK_EVOCATIONS, 3 + random2(3));
break;
case ABIL_NEMELEX_PEEK:
if ( !deck_peek() )
return false;
+ exercise(SK_EVOCATIONS, 2 + random2(2));
break;
case ABIL_NEMELEX_STACK_DECK:
if ( !deck_stack() )
return false;
+ exercise(SK_EVOCATIONS, 5 + random2(5));
break;
case ABIL_BEOGH_SMITING: