diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-09-19 00:05:15 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2011-09-19 00:09:47 +0200 |
commit | 08012983ebf16be4922a5562ab017da9edee607f (patch) | |
tree | ef6aa69b56bbb87b2a6d3d8d22745af8685160e1 /crawl-ref/source/random.h | |
parent | ffb79818e5dccf7cbb54806d924909b0ffe903bc (diff) | |
download | crawl-ref-08012983ebf16be4922a5562ab017da9edee607f.tar.gz crawl-ref-08012983ebf16be4922a5562ab017da9edee607f.zip |
Give you.skill() a "scale" argument for partial skills, make callers use it.
Almost all uses have been converted, the only major one is unarmed base damage.
For users of raw you.skills[], hp and mp calculations have been changed as well.
you.skill() doesn't actually return partial values yet.
Diffstat (limited to 'crawl-ref/source/random.h')
-rw-r--r-- | crawl-ref/source/random.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/random.h b/crawl-ref/source/random.h index 1474c08660..6d7bf8fed4 100644 --- a/crawl-ref/source/random.h +++ b/crawl-ref/source/random.h @@ -13,6 +13,7 @@ bool one_chance_in(int a_million); bool x_chance_in_y(int x, int y); int random2(int max); int maybe_random2(int x, bool random_factor); +int maybe_random_div(int nom, int denom, bool random_factor); int maybe_roll_dice(int num, int size, bool random); int random_range(int low, int high); int random_range(int low, int high, int nrolls); |