summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ability.cc
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2014-04-02 12:42:40 -0600
committerSteve Melenchuk <smelenchuk@gmail.com>2014-05-07 18:23:20 -0600
commitb9ac4c953e9d5fae3bc23dde3f999218d396f804 (patch)
tree8548ca2b3ea15399b239c2fa493c6cd1c9908019 /crawl-ref/source/ability.cc
parent35db536519c705528e4f8bf41851e58502ceb4f5 (diff)
downloadcrawl-ref-b9ac4c953e9d5fae3bc23dde3f999218d396f804.tar.gz
crawl-ref-b9ac4c953e9d5fae3bc23dde3f999218d396f804.zip
Gozag: prelimiary implementation of Bribe Branch.
Spend 3000 gold for a chance of temporarily turning some of the inhabitants of a branch good neutral, or possibly even friendly. Bribes are only effective against newly generated monsters (i.e. on level creation or monsters that spawn afterwards); the fund times out over time and more quickly with the number of enemies affected, upon which neutral enemies turn hostile again; friendly followers will continue to follow the player subject to occasional follow-up payments.
Diffstat (limited to 'crawl-ref/source/ability.cc')
-rw-r--r--crawl-ref/source/ability.cc13
1 files changed, 11 insertions, 2 deletions
diff --git a/crawl-ref/source/ability.cc b/crawl-ref/source/ability.cc
index 42d2fd8714..3b20f54973 100644
--- a/crawl-ref/source/ability.cc
+++ b/crawl-ref/source/ability.cc
@@ -196,8 +196,8 @@ ability_type god_abilities[NUM_GODS][MAX_GOD_ABILITIES] =
{ ABIL_NON_ABILITY, ABIL_DITHMENOS_SHADOW_STEP, ABIL_NON_ABILITY,
ABIL_NON_ABILITY, ABIL_DITHMENOS_SHADOW_FORM },
// Gozag
- { ABIL_GOZAG_POTION_PETITION, ABIL_GOZAG_CALL_MERCHANT, ABIL_NON_ABILITY,
- ABIL_NON_ABILITY, ABIL_NON_ABILITY },
+ { ABIL_GOZAG_POTION_PETITION, ABIL_GOZAG_CALL_MERCHANT,
+ ABIL_GOZAG_BRIBE_BRANCH, ABIL_NON_ABILITY, ABIL_NON_ABILITY },
};
// The description screen was way out of date with the actual costs.
@@ -415,6 +415,8 @@ static const ability_def Ability_List[] =
0, 0, 0, 0, 0, ABFLAG_GOLD },
{ ABIL_GOZAG_CALL_MERCHANT, "Call Merchant",
0, 0, 0, 0, 0, ABFLAG_GOLD },
+ { ABIL_GOZAG_BRIBE_BRANCH, "Bribe Branch",
+ 0, 0, 0, 0, 0, ABFLAG_GOLD },
{ ABIL_STOP_RECALL, "Stop Recall", 0, 0, 0, 0, 0, ABFLAG_NONE},
@@ -1062,6 +1064,7 @@ talent get_talent(ability_type ability, bool check_confused)
case ABIL_JIYVA_JELLY_PARALYSE:
case ABIL_GOZAG_POTION_PETITION:
case ABIL_GOZAG_CALL_MERCHANT:
+ case ABIL_GOZAG_BRIBE_BRANCH:
case ABIL_STOP_RECALL:
invoc = true;
failure = 0;
@@ -2921,6 +2924,12 @@ static bool _do_ability(const ability_def& abil)
break;
+ case ABIL_GOZAG_BRIBE_BRANCH:
+ if (!gozag_bribe_branch())
+ return false;
+
+ break;
+
case ABIL_RENOUNCE_RELIGION:
if (yesno("Really renounce your faith, foregoing its fabulous benefits?",
false, 'n')