From 1a5d9e29871af07709b0e44a449cafe08c2c40f8 Mon Sep 17 00:00:00 2001 From: Adam Borowski Date: Wed, 16 Dec 2009 16:07:10 +0100 Subject: Give a thematic message when Summon Horrible Things drains int. (Eronarn) --- crawl-ref/source/spells3.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/spells3.cc') 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 = -- cgit v1.2.3-54-g00ecf