diff options
author | Steve Melenchuk <smelenchuk@gmail.com> | 2013-10-29 13:30:40 -0600 |
---|---|---|
committer | Steve Melenchuk <smelenchuk@gmail.com> | 2013-10-29 17:27:10 -0600 |
commit | 5704405f15c98fa0e7abc6b0282892279f79cc28 (patch) | |
tree | 28eb1bd93c5197b3c4d09a87ecf02d0bc71af573 /crawl-ref/source/art-func.h | |
parent | 8de7c5b38b6efcf32ce442a8eb5fe78304165431 (diff) | |
download | crawl-ref-5704405f15c98fa0e7abc6b0282892279f79cc28.tar.gz crawl-ref-5704405f15c98fa0e7abc6b0282892279f79cc28.zip |
Unrand: the +2 hat of the High Council {Archmagi, Wiz- Noisy Contam Stlth-}.
It has an anti-wizardry effect, e.g. it negatively impacts spell success
rates - on the whole, it's basically a hat of wild magic.
There's a minor adjustment here to item name code to get the noises to
display properly.
Diffstat (limited to 'crawl-ref/source/art-func.h')
-rw-r--r-- | crawl-ref/source/art-func.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/crawl-ref/source/art-func.h b/crawl-ref/source/art-func.h index 83f17efa0c..7046c2ad65 100644 --- a/crawl-ref/source/art-func.h +++ b/crawl-ref/source/art-func.h @@ -887,3 +887,14 @@ static setup_missile_type _HELLFIRE_launch(item_def* item, bolt* beam, beam->special_explosion = expl; return SM_FINISHED; } + +/////////////////////////////////////////////////// + +static void _HIGH_COUNCIL_world_reacts(item_def *item) +{ + if (silenced(you.pos()) || !one_chance_in(20)) + return; + + string msg = getSpeakString("hat of the High Council"); + item_noise(*item, msg); +} |