summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/xom.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/crawl-ref/source/xom.cc b/crawl-ref/source/xom.cc
index d34fa6c373..e02af6de29 100644
--- a/crawl-ref/source/xom.cc
+++ b/crawl-ref/source/xom.cc
@@ -202,9 +202,7 @@ static void _xom_makes_you_cast_random_spell(int sever)
your_spells(spell, sever, false);
}
-static void _xom_make_item(object_class_type base,
- int subtype,
- int power)
+static void _xom_make_item(object_class_type base, int subtype, int power)
{
int thing_created =
items(true, base, subtype, true, power, MAKE_ITEM_RANDOM_RACE);
@@ -848,16 +846,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))
- success = cast_tukimas_dance(100, GOD_XOM, true);
+ cast_tukimas_dance(100, GOD_XOM, 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(