summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/xom.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-24 03:55:16 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-24 03:55:16 +0000
commit4956eb56aea53d659417fb0833774ec8c2fbefca (patch)
tree100eec686c51d3575ffe1f3c22ddd729b5c39214 /crawl-ref/source/xom.cc
parentc0bc0fc1104c41ea396a7f1f3414e291ea7e7642 (diff)
downloadcrawl-ref-4956eb56aea53d659417fb0833774ec8c2fbefca.tar.gz
crawl-ref-4956eb56aea53d659417fb0833774ec8c2fbefca.zip
Add more miscellaneous minor fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6102 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/xom.cc')
-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(