summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/abyss.cc
diff options
context:
space:
mode:
authorreaverb <reaverb.Crawl@gmail.com>2014-08-08 03:57:55 -0400
committerreaverb <reaverb.Crawl@gmail.com>2014-08-08 15:00:27 -0400
commit959592d6485a5aec6e0fb404f31edce8dd690e11 (patch)
treea4c97b5ea792cc5720bbb75661653af2f2efd08c /crawl-ref/source/abyss.cc
parent8ce947975fa9f9c0b3d8575ab43ff042c5d6b872 (diff)
downloadcrawl-ref-959592d6485a5aec6e0fb404f31edce8dd690e11.tar.gz
crawl-ref-959592d6485a5aec6e0fb404f31edce8dd690e11.zip
Remove 2 more parameters from items()
They were only used in one place, and the relevant code was moved to that one place in the previous commit.
Diffstat (limited to 'crawl-ref/source/abyss.cc')
-rw-r--r--crawl-ref/source/abyss.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/abyss.cc b/crawl-ref/source/abyss.cc
index 2d96fc22e0..f8763f32b1 100644
--- a/crawl-ref/source/abyss.cc
+++ b/crawl-ref/source/abyss.cc
@@ -292,7 +292,7 @@ static bool _abyss_place_rune(const map_bitmask &abyss_genlevel_mask,
if (places_found)
{
dprf("Placing abyssal rune at (%d,%d)", chosen_spot.x, chosen_spot.y);
- int item_ind = items(1, OBJ_MISCELLANY, MISC_RUNE_OF_ZOT, true, 0);
+ int item_ind = items(true, OBJ_MISCELLANY, MISC_RUNE_OF_ZOT, 0);
if (item_ind != NON_ITEM)
{
mitm[item_ind].plus = RUNE_ABYSSAL;
@@ -371,8 +371,8 @@ static int _abyss_create_items(const map_bitmask &abyss_genlevel_mask,
const coord_def place(chosen_item_places[i]);
if (_abyss_square_accepts_items(abyss_genlevel_mask, place))
{
- int thing_created = items(1, OBJ_RANDOM, OBJ_RANDOM,
- true, items_level, 250);
+ int thing_created = items(true, OBJ_RANDOM, OBJ_RANDOM,
+ items_level);
move_item_to_grid(&thing_created, place);
if (thing_created != NON_ITEM)
{