What is the logic for ammo pickup sorting?


Although the central place for design discussion is ##crawl-dev on freenode, some may find it helpful to discuss requests and suggestions here first.

User avatar

Ziggurat Zagger

Posts: 5832

Joined: Thursday, 10th February 2011, 18:30

Post Tuesday, 1st November 2011, 18:16

What is the logic for ammo pickup sorting?

I am an alternate slings/thrower. I pick up sling bullets, needles and darts.

In my inventory (tiles), it's my opinion that they are completely mis-sorted.

Currently it is "needles, bullets, darts, bullets, bullets, needles, darts, darts".

Logically I'd expect "bullets, bullets, bullets, needles, needles, darts, darts, darts" or similar.

Is there some logic during item pickup for sorting purposes?
"Be aware that a lot of people on this forum, such as mageykun and XuaXua, have a habit of making things up." - minmay a.k.a. duvessa
Did I make a lame complaint? Check for Bingo!
Totally gracious CSDC Season 2 Division 4 Champeen!
User avatar

Dungeon Master

Posts: 182

Joined: Saturday, 18th December 2010, 10:26

Location: Germany

Post Tuesday, 1st November 2011, 19:51

Re: What is the logic for ammo pickup sorting?

I'm a bit confused because you mention both pickup and inventory, so I'm not entirely sure which of the two you mean.

The inventory is generally sorted (within a category) by the slot letter. Items on the floor actually aren't sorted at all, but simply output in the order they happen to lie in the stash. Sorting the latter by type (even roughly by base type name) would be an improvement indeed. If it's not already on the wiki, you might want to add that.

Does that answer your question, or did you mean something else?
Please report bugs to Crawl's bug tracker, and leave feedback on the development wiki. Thank you!

Ziggurat Zagger

Posts: 6393

Joined: Friday, 17th December 2010, 18:17

Post Tuesday, 1st November 2011, 20:13

Re: What is the logic for ammo pickup sorting?

Somewhat related, I'd like to see ammo renamed so that it sorts on the floor like wands do. Currently ammo is:

bolt of flame
poisoned bolt
bolt of frost
steel bolt
etc.

They should all be
bolt of foo

I'd also like to see ranged plusses and brands rationalised:
plusses only on launchers (to prevent twenty different stacks of ammo)
frost/flame only on missiles (to make launchers more useful)
Last edited by Grimm on Tuesday, 1st November 2011, 20:19, edited 1 time in total.
User avatar

Ziggurat Zagger

Posts: 5832

Joined: Thursday, 10th February 2011, 18:30

Post Tuesday, 1st November 2011, 20:14

Re: What is the logic for ammo pickup sorting?

jpeg wrote:I'm a bit confused because you mention both pickup and inventory, so I'm not entirely sure which of the two you mean.

The inventory is generally sorted (within a category) by the slot letter. Items on the floor actually aren't sorted at all, but simply output in the order they happen to lie in the stash. Sorting the latter by type (even roughly by base type name) would be an improvement indeed. If it's not already on the wiki, you might want to add that.

Does that answer your question, or did you mean something else?


I think so.

Basically, I'm trying to find out why certain ammo items get assigned inventory slots in a seemingly complely random order.

I took all my various unordered bullets, needles and darts, dropped them all, then picked them up, all bullets first, then all needles, then all darts, but in my inventory (bottom right of screen, sorted by letter), the items were still completely jumbled: a square of darts, two squares of bullets, a square of needles, more darts and needles and then bullets. Simply didn't make sense to me; felt like a hash was being used instead of a list.
"Be aware that a lot of people on this forum, such as mageykun and XuaXua, have a habit of making things up." - minmay a.k.a. duvessa
Did I make a lame complaint? Check for Bingo!
Totally gracious CSDC Season 2 Division 4 Champeen!

Dungeon Master

Posts: 3618

Joined: Thursday, 23rd December 2010, 12:43

Post Tuesday, 1st November 2011, 20:14

Re: What is the logic for ammo pickup sorting?

Grimm: sounds good -- make a proposal, and off we go!
User avatar

Ziggurat Zagger

Posts: 5832

Joined: Thursday, 10th February 2011, 18:30

Post Tuesday, 1st November 2011, 20:16

Re: What is the logic for ammo pickup sorting?

Grimm wrote:Somewhat related, I'd like to see ammo renamed so that it sorts on the floor like wands do. Currently ammo is:

bolt of flame
poisoned bolt
bolt of steel
etc.

They should all be
bolt of foo


This is an unrelated semantics argument, but I agree on naming standardization.

Grimm wrote:I'd also like to see ranged plusses and brands rationalised:
plusses only on launchers (to prevent twenty different stacks of ammo)
frost/flame only on missiles (to make launchers more useful)


This too. Won't have to carry BOTH a bow of flame and a bow of frost with whatever ammo I have available.
"Be aware that a lot of people on this forum, such as mageykun and XuaXua, have a habit of making things up." - minmay a.k.a. duvessa
Did I make a lame complaint? Check for Bingo!
Totally gracious CSDC Season 2 Division 4 Champeen!

Ziggurat Zagger

Posts: 6393

Joined: Friday, 17th December 2010, 18:17

Post Tuesday, 1st November 2011, 23:33

Re: What is the logic for ammo pickup sorting?

I put my suggestions on the wiki.

Spider Stomper

Posts: 195

Joined: Monday, 25th April 2011, 20:48

Post Wednesday, 2nd November 2011, 03:15

Re: What is the logic for ammo pickup sorting?

Grimm wrote:plusses only on launchers (to prevent twenty different stacks of ammo)

What about thrown missiles? Do you plan to make them a special case?
Grimm wrote:frost/flame only on missiles (to make launchers more useful)

What about casting branding spells while wielding launchers? There's already a precedent with things like Warp Weapon and Excruciating Wounds not working on launchers, but I feel that something would be lost if Skald-like characters couldn't brand their launchers with flame, frost, or poison.

Ziggurat Zagger

Posts: 6393

Joined: Friday, 17th December 2010, 18:17

Post Wednesday, 2nd November 2011, 08:43

Re: What is the logic for ammo pickup sorting?

Thrown missiles - yes, those would be considered differently.
Branding spells - not sure, hadn't thought that through.

Return to Game Design Discussion

Who is online

Users browsing this forum: No registered users and 29 guests

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.