summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/xom.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-23 07:40:06 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-23 07:40:06 +0000
commita27179a05573d155ab01f46af899db250f1f9327 (patch)
tree5dd7532320c9038b81638bd8d819e12605cbdb80 /crawl-ref/source/xom.cc
parent12b8e7cda24e50aad13854a77688dfbaf63466b2 (diff)
downloadcrawl-ref-a27179a05573d155ab01f46af899db250f1f9327.tar.gz
crawl-ref-a27179a05573d155ab01f46af899db250f1f9327.zip
Display the proper message when Xom fails to animate your weapon against
you. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6081 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/xom.cc')
-rw-r--r--crawl-ref/source/xom.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/crawl-ref/source/xom.cc b/crawl-ref/source/xom.cc
index b27b0f46b0..d613d9375a 100644
--- a/crawl-ref/source/xom.cc
+++ b/crawl-ref/source/xom.cc
@@ -832,16 +832,16 @@ static bool _xom_is_bad(int sever)
{
god_speaks(GOD_XOM, _get_xom_speech("hostile monster"));
+ bool success = false;
+
// Nasty, but fun.
if (one_chance_in(4))
- cast_tukimas_dance(100, GOD_XOM, true, true);
+ success = cast_tukimas_dance(100, GOD_XOM, true, true);
else
{
const int numdemons =
std::min(random2(random2(random2(sever+1)+1)+1)+1, 14);
- bool success = false;
-
for (int i = 0; i < numdemons; ++i)
{
if (create_monster(
@@ -852,12 +852,12 @@ static bool _xom_is_bad(int sever)
success = true;
}
}
+ }
- if (!success)
- {
- simple_god_message("'s servants are having fun elsewhere.",
- GOD_XOM);
- }
+ if (!success)
+ {
+ simple_god_message("'s servants are having fun elsewhere.",
+ GOD_XOM);
}
done = true;