diff options
author | Adam Borowski <kilobyte@angband.pl> | 2009-12-16 16:07:10 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2009-12-16 16:16:05 +0100 |
commit | 1a5d9e29871af07709b0e44a449cafe08c2c40f8 (patch) | |
tree | 8fea8b9a8e2eb6e3316762571ccca4a45c54263c /crawl-ref/source | |
parent | adea42fe530415c5ceeaacacbb1a2f472dc410e9 (diff) | |
download | crawl-ref-1a5d9e29871af07709b0e44a449cafe08c2c40f8.tar.gz crawl-ref-1a5d9e29871af07709b0e44a449cafe08c2c40f8.zip |
Give a thematic message when Summon Horrible Things drains int. (Eronarn)
Diffstat (limited to 'crawl-ref/source')
-rw-r--r-- | crawl-ref/source/dat/database/miscname.txt | 11 | ||||
-rw-r--r-- | crawl-ref/source/spells3.cc | 10 |
2 files changed, 17 insertions, 4 deletions
diff --git a/crawl-ref/source/dat/database/miscname.txt b/crawl-ref/source/dat/database/miscname.txt index 2a4d9788ae..f2c6112852 100644 --- a/crawl-ref/source/dat/database/miscname.txt +++ b/crawl-ref/source/dat/database/miscname.txt @@ -217,3 +217,14 @@ the chiming of a distant gong the tinkle of an enormous bell %%%% +SHT_int_loss + +# Bal-Sagoth +The summoning rite seemed to take a not insignificant toll on your sanity. + +You have a brief vision of a great black cyclopean cityscape with towering stygian walls. + +Your vision is obscured by outlandish glyphs which seem to writhe squamously and alter their shape. + +You feel inexorably dogged by some nameless and implacable gloom. +%%%% diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc index 480730e6f9..d774db49e2 100644 --- a/crawl-ref/source/spells3.cc +++ b/crawl-ref/source/spells3.cc @@ -22,6 +22,7 @@ #include "branch.h" #include "cloud.h" #include "coordit.h" +#include "database.h" #include "directn.h" #include "debug.h" #include "delay.h" @@ -588,11 +589,12 @@ bool cast_shadow_creatures(god_type god) bool cast_summon_horrible_things(int pow, god_type god) { - if (one_chance_in(3) - && !lose_stat(STAT_INTELLIGENCE, 1, true, "summoning horrible things")) + if (one_chance_in(3)) { - canned_msg(MSG_NOTHING_HAPPENS); - return (false); + // if someone deletes the db, no message is ok + mpr(getMiscString("SHT_int_loss").c_str()); + lose_stat(STAT_INTELLIGENCE, 1, true, "summoning horrible things"); + // Since sustAbil no longer helps here, this can't fail anymore -- 1KB } int how_many_small = |