From 79ab3930c258a9ca66b834c8196227d595e45815 Mon Sep 17 00:00:00 2001 From: dolorous Date: Sat, 22 Mar 2008 15:45:39 +0000 Subject: Fix blessing percentage checks. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3807 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/religion.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/religion.cc') diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc index f640274130..81d5b2f784 100644 --- a/crawl-ref/source/religion.cc +++ b/crawl-ref/source/religion.cc @@ -822,9 +822,11 @@ void bless_follower(god_type god, const char *blessed = mon->name(DESC_NOCAP_A).c_str(); const char *result; + int chance = random2(20); + // 5% chance: Turn a monster into a priestly monster, if possible. // This is currently only used for Beogh and ordinary orcs. - if (one_chance_in(20)) + if (chance == 0) { if (god == GOD_BEOGH && mon->type == MONS_ORC && blessing_priesthood(mon)) @@ -837,7 +839,7 @@ void bless_follower(god_type god, // 5% chance: Enchant a monster's armour or shield by one or two // points, or at least uncurse it, if possible. The message doesn't // make a distinction. - if (one_chance_in(20)) + if (chance <= 1) { bool ac_effect = blessing_ac(mon); -- cgit v1.2.3-54-g00ecf