You can "use" a can of Brütelbräu, for example, to get a fancy tin beer can, even though it's primary use is as booze. We can indicate that in items.txt by making its usage be "booze, usable". (I will submit that, soon.) Having done that, the item is given the ATTR_USABLE flag and if you construct a UseItemRequest for it that does not specify that you want to drink it - CONSUME_BOOZE - it goes to inv_use.php rather than inv_booze.php. And, given that, if you select it on an inventory panel and say "use item", it uses it and creates a fancy tin beer can, as expected.
Unfortunately, you are not given the opportunity to say how many you want to "use"; since the primary usage is "booze", KoLmafia calculates how many you can use as if you were going to drink it.
This is all some funny interaction between ItemManagePanel.getDesiredItemAmount and UseItemRequest.maximumUses
Unfortunately, you are not given the opportunity to say how many you want to "use"; since the primary usage is "booze", KoLmafia calculates how many you can use as if you were going to drink it.
This is all some funny interaction between ItemManagePanel.getDesiredItemAmount and UseItemRequest.maximumUses