summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/exercise.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2012-03-16 19:59:41 -0400
committerNeil Moore <neil@s-z.org>2012-03-16 22:40:07 -0400
commit363a17cc58cceb71059d983c0c31ee92219ad9ee (patch)
tree44f5ec2ab6cbefc07b3303a11e5803ce0e0a6ed9 /crawl-ref/source/exercise.cc
parentc2b40290474eeb5f5b6050531243c80f5665dadb (diff)
downloadcrawl-ref-363a17cc58cceb71059d983c0c31ee92219ad9ee.tar.gz
crawl-ref-363a17cc58cceb71059d983c0c31ee92219ad9ee.zip
New Nemelex ability: Deal Four.
You draw four cards from the top of the deck and play them immediately (in sequence, but taking a single turn). To balance this: * It doesn't work on marked decks. * The MP, piety, and hunger costs are quite high. * The rest of the deck is destroyed. * If there weren't enough cards, you "get to" deal a card from the deck of punishments (just one, not the number of cards you lacked). This probably needs more tweaking. In particular, the MP cost is high (to limit spamming the ability in combat), but it may be so high as to cause a problem for non-casters of certain races.
Diffstat (limited to 'crawl-ref/source/exercise.cc')
-rw-r--r--crawl-ref/source/exercise.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/exercise.cc b/crawl-ref/source/exercise.cc
index 7f01508a2b..6feca72d95 100644
--- a/crawl-ref/source/exercise.cc
+++ b/crawl-ref/source/exercise.cc
@@ -32,6 +32,7 @@ skill_type abil_skill(ability_type abil)
case ABIL_NEMELEX_DRAW_ONE:
case ABIL_NEMELEX_PEEK_TWO:
case ABIL_NEMELEX_TRIPLE_DRAW:
+ case ABIL_NEMELEX_DEAL_FOUR:
case ABIL_NEMELEX_STACK_FIVE:
return (SK_EVOCATIONS);
@@ -107,6 +108,8 @@ static int _abil_degree(ability_type abil)
return (2 + random2(2));
case ABIL_NEMELEX_TRIPLE_DRAW:
return (3 + random2(3));
+ case ABIL_NEMELEX_DEAL_FOUR:
+ return (4 + random2(4));
case ABIL_NEMELEX_STACK_FIVE:
return (5 + random2(5));