diff options
author | reaverb <reaverb.Crawl@gmail.com> | 2014-06-10 13:47:28 -0400 |
---|---|---|
committer | reaverb <reaverb.Crawl@gmail.com> | 2014-06-10 13:47:28 -0400 |
commit | 2cecdf434401f754e5e8ac3cb8a587116bb51302 (patch) | |
tree | 590132bde39d1ad18b295e80cbf2730fc0e22347 /crawl-ref/source/godprayer.cc | |
parent | 7e81480cda18144ff185f5248639a072b654deff (diff) | |
download | crawl-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/godprayer.cc')
-rw-r--r-- | crawl-ref/source/godprayer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/godprayer.cc b/crawl-ref/source/godprayer.cc index 2be4a6ee3b..7f2c3eb857 100644 --- a/crawl-ref/source/godprayer.cc +++ b/crawl-ref/source/godprayer.cc @@ -590,7 +590,7 @@ static void _ashenzari_sac_scroll(const item_def& item) scr = random_choose_weighted(wpn, SCR_CURSE_WEAPON, arm, SCR_CURSE_ARMOUR, jwl, SCR_CURSE_JEWELLERY, - -1); + 0); } int it = items(0, OBJ_SCROLLS, scr, true, 0, 0, 0, 0, GOD_ASHENZARI); if (it == NON_ITEM) |