summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ability.cc
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2014-04-13 15:50:53 -0600
committerSteve Melenchuk <smelenchuk@gmail.com>2014-05-07 18:23:24 -0600
commitbef5296d49176f7f15cc0adaad85c62ea3366fbd (patch)
treecce1ffea8f52ad802d0864d2c990cc0df6b87925 /crawl-ref/source/ability.cc
parent1c445a7113cd6b4cc56a3f55919304664a9bc1f3 (diff)
downloadcrawl-ref-bef5296d49176f7f15cc0adaad85c62ea3366fbd.tar.gz
crawl-ref-bef5296d49176f7f15cc0adaad85c62ea3366fbd.zip
Qazlal: Disaster Area.
Effectively a wide-area Upheaval.
Diffstat (limited to 'crawl-ref/source/ability.cc')
-rw-r--r--crawl-ref/source/ability.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/crawl-ref/source/ability.cc b/crawl-ref/source/ability.cc
index 718116d42b..584faef7b1 100644
--- a/crawl-ref/source/ability.cc
+++ b/crawl-ref/source/ability.cc
@@ -200,7 +200,7 @@ ability_type god_abilities[NUM_GODS][MAX_GOD_ABILITIES] =
ABIL_GOZAG_BRIBE_BRANCH, ABIL_NON_ABILITY, ABIL_NON_ABILITY },
// Qazlal
{ ABIL_NON_ABILITY, ABIL_QAZLAL_UPHEAVAL, ABIL_QAZLAL_ELEMENTAL_FORCE,
- ABIL_NON_ABILITY, ABIL_NON_ABILITY },
+ ABIL_NON_ABILITY, ABIL_QAZLAL_DISASTER_AREA },
};
// The description screen was way out of date with the actual costs.
@@ -425,6 +425,8 @@ static const ability_def Ability_List[] =
{ ABIL_QAZLAL_UPHEAVAL, "Upheaval", 4, 0, 0, 3, 0, ABFLAG_NONE },
{ ABIL_QAZLAL_ELEMENTAL_FORCE, "Elemental Force",
6, 0, 0, 6, 0, ABFLAG_NONE },
+ { ABIL_QAZLAL_DISASTER_AREA, "Disaster Area", 7, 0, 0,
+ generic_cost::range(10, 14), 0, ABFLAG_NONE },
{ ABIL_STOP_RECALL, "Stop Recall", 0, 0, 0, 0, 0, ABFLAG_NONE},
@@ -1186,6 +1188,7 @@ talent get_talent(ability_type ability, bool check_confused)
case ABIL_MAKHLEB_GREATER_SERVANT_OF_MAKHLEB:
case ABIL_LUGONU_CORRUPT:
case ABIL_FEDHAS_RAIN:
+ case ABIL_QAZLAL_DISASTER_AREA:
invoc = true;
failure = 70 - (you.piety / 25) - you.skill(SK_INVOCATIONS, 4);
break;
@@ -2949,6 +2952,11 @@ static bool _do_ability(const ability_def& abil)
case ABIL_QAZLAL_ELEMENTAL_FORCE:
qazlal_elemental_force();
+ break;
+
+ case ABIL_QAZLAL_DISASTER_AREA:
+ if (!qazlal_disaster_area())
+ return false;
break;
case ABIL_RENOUNCE_RELIGION: