summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/effects.cc
diff options
context:
space:
mode:
authorgammafunk <gammafunk@gmail.com>2014-02-27 21:47:32 -0600
committergammafunk <gammafunk@gmail.com>2014-02-28 02:11:39 -0600
commite2f36c2bfc746f1655180c70959a2bca4f0e02c1 (patch)
tree9ab665be94c8f9a163f22604d458a445c0860d1c /crawl-ref/source/effects.cc
parentdf76e187f3371092905011ab0296a5b3a24bf4e8 (diff)
downloadcrawl-ref-e2f36c2bfc746f1655180c70959a2bca4f0e02c1.tar.gz
crawl-ref-e2f36c2bfc746f1655180c70959a2bca4f0e02c1.zip
Rework the Horn of Geryon as an xp-charged evocable.
Previously the horn was a nearly useless item after unbarring the hells and possibly opening a trove. This version keeps the summon hell beast theme but turns it into a more useful xp-charging evocable. Evoking it when it's charged summons 1-4 hell beasts, depending on evocations, each summon having a small chance of being hostile, also depending on evocations. The chance of getting a hostile hell beast is 7 in evocations * 10 (always hostile at evocations 0). Two hell beasts get created 63% of the time at 10 evocations, three 63% of the time at 15 evocations, and 4 66% of the time at 20 evocations, with always 4 summoned at higher than 23 evocations. It could perhaps use an additional effect, but it's an always-generated item that's relatively accessible in a 3-rune game, so some care has to be taken there.
Diffstat (limited to 'crawl-ref/source/effects.cc')
-rw-r--r--crawl-ref/source/effects.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc
index c61555bd02..8888112fed 100644
--- a/crawl-ref/source/effects.cc
+++ b/crawl-ref/source/effects.cc
@@ -3197,13 +3197,13 @@ void slime_wall_damage(actor* act, int delay)
}
}
-void recharge_elemental_evokers(int exp)
+void recharge_xp_evokers(int exp)
{
FixedVector<item_def*, NUM_MISCELLANY> evokers(nullptr);
for (int i = 0; i < ENDOFPACK; ++i)
{
item_def& item(you.inv[i]);
- if (is_elemental_evoker(item) && item.plus2 > 0)
+ if (is_xp_evoker(item) && item.plus2 > 0)
{
// Only recharge one of each type of evoker at a time.
if (evokers[item.sub_type]