Cataclysm-dda: Mention capacity limits on holsters/harnesses etc.

Created on 29 Aug 2016  路  6Comments  路  Source: CleverRaven/Cataclysm-DDA

As mentioned by Pantalion on the forums, it would be nice if holsters and harnesses such as for example the survivor harness mention what kind of weapons of what exact size they can use. Right now it is a bit annoying.

(P5 - Long-term) Info / User Interface

Most helpful comment

The easiest, non-hardcoded but still "proper" way would be to pair flags to descriptions somewhere.
Something like a simple json-loaded structure with flag id as id, item description field and a holster description field.

This would have one big advantage: it could be used to add jsonized descriptions for many item flags from that gigantic if( has_flag( x ) ) in item.cpp. For example, flags like "FIT", "VARSIZE", "BELTED", "POCKETS", "FANCY", "DOUBLE_AMMO" (ones with no conditions).

All 6 comments

Size is easy, kind of weapon isn't, since they're checked by flags.

Hmm, so there isn't an easy way to convert those flags to text. Damn.

The easiest, non-hardcoded but still "proper" way would be to pair flags to descriptions somewhere.
Something like a simple json-loaded structure with flag id as id, item description field and a holster description field.

This would have one big advantage: it could be used to add jsonized descriptions for many item flags from that gigantic if( has_flag( x ) ) in item.cpp. For example, flags like "FIT", "VARSIZE", "BELTED", "POCKETS", "FANCY", "DOUBLE_AMMO" (ones with no conditions).

Is this why I cant holster a revolver for some reason? I mean the gun is only 250ml and the holster is 500ml so im confused as to why i get "no item on hand" message when attempting to do this? This seams like a bug not an interface issue.

@Treah: Holsters/harnesses work by flags not by volume.

Is this resolved by player visible pocket data or are these details hidden in the json?

Was this page helpful?
0 / 5 - 0 ratings