summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-cast.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/spl-cast.cc')
-rw-r--r--crawl-ref/source/spl-cast.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc
index 42d8de5c5f..08e9890a99 100644
--- a/crawl-ref/source/spl-cast.cc
+++ b/crawl-ref/source/spl-cast.cc
@@ -795,7 +795,7 @@ bool maybe_identify_staff(item_def &item, spell_type spell)
if (you.skills[SK_SPELLCASTING] > relevant_skill)
relevant_skill = you.skills[SK_SPELLCASTING];
- if (random2(100) < relevant_skill)
+ if (x_chance_in_y(relevant_skill, 100))
id_staff = true;
}
else if (relevant_skill >= 4)