diff options
author | Chris Campbell <chriscampbell89@gmail.com> | 2014-05-22 03:36:59 +0100 |
---|---|---|
committer | Chris Campbell <chriscampbell89@gmail.com> | 2014-05-22 03:43:06 +0100 |
commit | 5dbbf134ce8b56ecd116eea42d689782f9fb21ae (patch) | |
tree | f9f680e9bf0e7770d30d58a0090b31b9dd35cf84 /crawl-ref/source/acquire.cc | |
parent | fa12db5b089d36c568826285f23d6582d0c0690f (diff) | |
download | crawl-ref-5dbbf134ce8b56ecd116eea42d689782f9fb21ae.tar.gz crawl-ref-5dbbf134ce8b56ecd116eea42d689782f9fb21ae.zip |
Fix royal jellies being 6 times more likely from acquirement than rations
Diffstat (limited to 'crawl-ref/source/acquire.cc')
-rw-r--r-- | crawl-ref/source/acquire.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/crawl-ref/source/acquire.cc b/crawl-ref/source/acquire.cc index f72313fcf4..3580904298 100644 --- a/crawl-ref/source/acquire.cc +++ b/crawl-ref/source/acquire.cc @@ -401,11 +401,9 @@ static void _acquirement_determine_food(int& type_wanted, int& quantity) } else { - type_wanted = random_choose_weighted( - 6, FOOD_ROYAL_JELLY, - 1, player_mutation_level(MUT_HERBIVOROUS) ? FOOD_BREAD_RATION - : FOOD_MEAT_RATION, - 0); + type_wanted = coinflip() ? FOOD_ROYAL_JELLY + : player_mutation_level(MUT_HERBIVOROUS) ? FOOD_BREAD_RATION + : FOOD_MEAT_RATION; } quantity = 3 + random2(5); |