summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ng-wanderer.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2013-08-04 21:56:24 -0400
committerNeil Moore <neil@s-z.org>2013-08-04 22:13:53 -0400
commit49afce12fee3818afe82270270b71fdd9706cb97 (patch)
tree43fee6e83f8437e8d181d3cf69ca4638ac624a2a /crawl-ref/source/ng-wanderer.cc
parentccb6aaa35b122a8a62958c34b13b90af7a7f4dec (diff)
downloadcrawl-ref-49afce12fee3818afe82270270b71fdd9706cb97.tar.gz
crawl-ref-49afce12fee3818afe82270270b71fdd9706cb97.zip
Refactor.
Diffstat (limited to 'crawl-ref/source/ng-wanderer.cc')
-rw-r--r--crawl-ref/source/ng-wanderer.cc11
1 files changed, 3 insertions, 8 deletions
diff --git a/crawl-ref/source/ng-wanderer.cc b/crawl-ref/source/ng-wanderer.cc
index 9788b194ed..bc873e7c7a 100644
--- a/crawl-ref/source/ng-wanderer.cc
+++ b/crawl-ref/source/ng-wanderer.cc
@@ -34,8 +34,7 @@ static bool _give_wanderer_weapon(int & slot, int wpn_skill, int plus)
slot++;
}
- // Autopickup ammo
- you.force_autopickup[OBJ_MISSILES][MI_NEEDLE] = 1;
+ autopickup_starting_ammo(MI_NEEDLE);
}
newgame_make_item(slot, EQ_WEAPON, OBJ_WEAPONS, WPN_DAGGER);
@@ -811,9 +810,7 @@ static void _wanderer_cover_equip_holes(int & slot)
newgame_make_item(slot, EQ_NONE, OBJ_MISSILES, MI_BOLT, -1,
15 + random2avg(21, 5));
slot++;
-
- // Autopickup ammo
- you.force_autopickup[OBJ_MISSILES][MI_BOLT] = 1;
+ autopickup_starting_ammo(MI_BOLT);
}
// And the player needs arrows if they have a bow.
@@ -834,9 +831,7 @@ static void _wanderer_cover_equip_holes(int & slot)
newgame_make_item(slot, EQ_NONE, OBJ_MISSILES, MI_ARROW, -1,
15 + random2avg(21, 5));
slot++;
-
- // Autopickup ammo
- you.force_autopickup[OBJ_MISSILES][MI_ARROW] = 1;
+ autopickup_starting_ammo(MI_ARROW);
}
}