
[Enhancement] Well Fed Buffs; Whetstones and Oils
F-Lambda opened this issue ยท 3 comments
Not sure how you'd go about doing this, but it'd be nice if Well Fed buffs from food show on the corresponding food, as well as whetstone and oil buffs when applied to weapons.
Food seems to be able to added manually by linking the corresponding Well Fed aura to the Refreshment cast spell. Sharpening, however, doesn't seem to have a proper aura unique to the buff from what I can see.
For dual wielded weapons with the same temp enhance, the button aura should show the length of the shorter duration remaining.
Unfortunately these are not things where the game has an automated way to associate the item with the buff.
Weapon temporary enchants in general are a nightmare in the API and only have a specific temp enchant ID that has no associated name and can't be queried in any way. There are 5 hard-coded in LBA for the shaman weapon imbues.
Each individual type of food has its own spell that it casts to eat it, and (for those that do) its own specific "Well Fed" buff spell that results from eating it for 10 seconds or more. But the two are not tied together in any way I can see that's accessible to addons.
As far as I can see the only way to do this is to make and keep updated an enormous list of every possible food spell -> well fed buff spell and weapon enchant item spell -> temp enchant id mappings. And that is not something I will ever do; I don't have an interest or time for it. AdiButtonAuras worked this way with LibPlayerSpells and it got out of date and useless as soon as nobody was prepared to put hundreds of hours into maintaining it.
Unless you can find a way for this to work automatically, it's a no go. Sorry!
This is the type and amount of data that AdiButtonAuras tried to maintain for this kind of thing, and has not updated in 7 years:
https://github.com/AdiAddons/LibItemBuffs-1.0/blob/master/LibItemBuffs-Database-1.0.lua