Clean up ammo_pickupevalfunc to not reference items directly
Inspired by !1118, cleans up a bot AI function to no longer make direct references to several resources and ammo items. The logic never actually made use of multiple items at a time so it's been condensed a lot to only check a single resource.