summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells3.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2009-12-16 16:07:10 +0100
committerAdam Borowski <kilobyte@angband.pl>2009-12-16 16:16:05 +0100
commit1a5d9e29871af07709b0e44a449cafe08c2c40f8 (patch)
tree8fea8b9a8e2eb6e3316762571ccca4a45c54263c /crawl-ref/source/spells3.cc
parentadea42fe530415c5ceeaacacbb1a2f472dc410e9 (diff)
downloadcrawl-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/spells3.cc')
-rw-r--r--crawl-ref/source/spells3.cc10
1 files changed, 6 insertions, 4 deletions
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 =