summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/religion.cc
diff options
context:
space:
mode:
authorreaverb <reaverb.Crawl@gmail.com>2014-06-10 13:47:28 -0400
committerreaverb <reaverb.Crawl@gmail.com>2014-06-10 13:47:28 -0400
commit2cecdf434401f754e5e8ac3cb8a587116bb51302 (patch)
tree590132bde39d1ad18b295e80cbf2730fc0e22347 /crawl-ref/source/religion.cc
parent7e81480cda18144ff185f5248639a072b654deff (diff)
downloadcrawl-ref-2cecdf434401f754e5e8ac3cb8a587116bb51302.tar.gz
crawl-ref-2cecdf434401f754e5e8ac3cb8a587116bb51302.zip
Revert "Make random_choose_weighted() end on -1 weight"
This reverts commit 7e81480cda18144ff185f5248639a072b654deff. Turns out I missed some calls to random_choose_weighted(), this change might not even be worth doing.
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r--crawl-ref/source/religion.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index d86484ced9..54f024d85a 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -1489,7 +1489,7 @@ static bool _give_nemelex_gift(bool forced = false)
misc_item_type gift_type = random_choose_weighted(
8, MISC_DECK_OF_WAR,
2, MISC_DECK_OF_ESCAPE,
- -1);
+ 0);
int thing_created = items(1, OBJ_MISCELLANY, gift_type,
true, 1, 0, 0, 0, GOD_NEMELEX_XOBEH);
@@ -1519,7 +1519,7 @@ static bool _give_nemelex_gift(bool forced = false)
common_weight, DECK_RARITY_COMMON,
rare_weight, DECK_RARITY_RARE,
legend_weight, DECK_RARITY_LEGENDARY,
- -1);
+ 0);
item_def &deck(mitm[thing_created]);