summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monplace.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-27 23:09:00 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-27 23:09:00 +0000
commita3d435d6dd693ab66af49cea2b4580884c706a74 (patch)
tree4fefe55936a45a510a0802375e18c18fd9bf85ee /crawl-ref/source/monplace.cc
parent9b2dcc4ad0b7bf87b645a5332bcf6702f27130dd (diff)
downloadcrawl-ref-a3d435d6dd693ab66af49cea2b4580884c706a74.tar.gz
crawl-ref-a3d435d6dd693ab66af49cea2b4580884c706a74.zip
Simplify.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9267 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monplace.cc')
-rw-r--r--crawl-ref/source/monplace.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/monplace.cc b/crawl-ref/source/monplace.cc
index bd117cf5d2..9a73241bbe 100644
--- a/crawl-ref/source/monplace.cc
+++ b/crawl-ref/source/monplace.cc
@@ -1064,17 +1064,17 @@ static int _place_monster_aux(const mgen_data &mg,
break;
}
}
- // 6 out of 7 non-priestly orcs are believers.
+ // 1 out of 7 non-priestly orcs are unbelievers.
else if (mons_genus(mg.cls) == MONS_ORC)
{
- if (x_chance_in_y(6, 7))
+ if (!one_chance_in(7))
menv[id].god = GOD_BEOGH;
}
- // Angels and Daevas belong to TSO, but you may find ones adopted by
- // Xom in the Abyss.
+ // Angels and Daevas belong to TSO, but 1 out of 7 in the Abyss are
+ // adopted by Xom.
else if (mons_class_holiness(mg.cls) == MH_HOLY)
{
- if (mg.level_type != LEVEL_ABYSS || x_chance_in_y(6, 7))
+ if (mg.level_type != LEVEL_ABYSS || !one_chance_in(7))
menv[id].god = GOD_SHINING_ONE;
else
menv[id].god = GOD_XOM;