summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/dat/database/miscname.txt11
-rw-r--r--crawl-ref/source/spells3.cc10
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 =