summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/randart.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/randart.cc')
-rw-r--r--crawl-ref/source/randart.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/crawl-ref/source/randart.cc b/crawl-ref/source/randart.cc
index 8d35c5f481..e0108b9d80 100644
--- a/crawl-ref/source/randart.cc
+++ b/crawl-ref/source/randart.cc
@@ -829,7 +829,11 @@ void static _get_randart_properties(const item_def &item,
}
}
- bool done_powers = (random2(12 < power_level));
+ // This can't be right. random2(boolean) == 0, always. (jpeg)
+// bool done_powers = (random2(12 < power_level));
+
+ // Try to improve items that still have a low power level.
+ bool done_powers = x_chance_in_y(power_level, 12);
// res_fire
if (!done_powers