Pocket category whitelist doesn't seems to work. For example, with whitelisted "Magazines" category on army pants pockets P320 mag goes into backpack on pickup, instead of pants. Even if mag inserted into pants manually, it'd go to rucksack on gun reload.
Desired use-case scenario: to define "battle gear" with only essentials in pockets to keep encumbrance down, with mags going into fastest pockets, whereas rest of the loot goes into backpack and can be quickly ditched.
With category whitelist set to "magazines" on pants P320 mag to go into army pants instead of rucksack.
Looks like there's some overeager logic in the better_pocket code which will ignore all other factors if any whitelist/blacklist data is set. If both pockets can contain the item, it will return exclusively based on priority (and it's not a stable sort either, so it's kind of random what happens here)
Will refactor it and add some tests later today.
Most helpful comment
Looks like there's some overeager logic in the better_pocket code which will ignore all other factors if any whitelist/blacklist data is set. If both pockets can contain the item, it will return exclusively based on priority (and it's not a stable sort either, so it's kind of random what happens here)
Will refactor it and add some tests later today.