summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/random.cc
diff options
context:
space:
mode:
authorNicholas Feinberg <pleasingfung@gmail.com>2014-07-01 08:47:21 -0700
committerNicholas Feinberg <pleasingfung@gmail.com>2014-07-01 08:47:50 -0700
commit857ce33cee7e16f5e59dfa35d40be06d23c864d0 (patch)
tree9f56697f9ec679e6759c6286fdd1bf8e6f90c1b3 /crawl-ref/source/random.cc
parentaada4ccf5d2b69a90b572bdfdad921937e2a02c5 (diff)
downloadcrawl-ref-857ce33cee7e16f5e59dfa35d40be06d23c864d0.tar.gz
crawl-ref-857ce33cee7e16f5e59dfa35d40be06d23c864d0.zip
Remove an unused and bizarre function
Diffstat (limited to 'crawl-ref/source/random.cc')
-rw-r--r--crawl-ref/source/random.cc13
1 files changed, 0 insertions, 13 deletions
diff --git a/crawl-ref/source/random.cc b/crawl-ref/source/random.cc
index d3b0342628..2054c8c205 100644
--- a/crawl-ref/source/random.cc
+++ b/crawl-ref/source/random.cc
@@ -231,19 +231,6 @@ dice_def calc_dice(int num_dice, int max_damage)
return ret;
}
-// Attempts to make missile weapons nicer to the player by reducing the
-// extreme variance in damage done.
-void scale_dice(dice_def &dice, int threshold)
-{
- while (dice.size > threshold)
- {
- dice.num *= 2;
- // If it's an odd number, lose one; this is more than
- // compensated by the increase in number of dice.
- dice.size /= 2;
- }
-}
-
// Calculates num/den and randomly adds one based on the remainder.
// [floor(num/den), ceil(num/den)]
int div_rand_round(int num, int den)