Change Maximum restock quantity field so that 0 means "do not restock" instead of "no restock limit"
In the current build of TSM, the Shopping operation can have a "Maximum restock quantity" parameter; if the user doesn't want to limit their shopping operation to a maximum restock quantity, the field takes the value 0.
I would like to make the following change:
- Add "Set Maximum restock" question which is a Yes/No question toggle; when "Yes", the Maximum Restock Quantity field is enabled; when "No", the Maximum Quantity field is disabled and this Shopping operation will be interpreted as "no restock limit" during shopping scans
- Maximum Restock Quantity = 0 is treated as "never restock" rather than treated as "no restock limit"
Reason: I would like to use functions that would make the maximum restock quantity more amenable to logic using custom strings.
Use case: On TBC Classic, I purchase Primals and Motes for crafting. I may buy 1 Primal or 10 Motes depending on which is the cheapest. Normally, when the restock limit for an item is hit, the item is removed from the Shopping scan. I would like to use a function that evaluates to zero when either the number of Primals in my inventory or the proportional number of motes hit the restock limit; this way, if I purchase 10 Motes, the Primals entry will be removed from the Shopping scan indicating that I've reached my restock limit. I have not been able to find a way to accomplish this with any available configuration as the operation requires you to set a nonzero Maximum Quantity Limit (if you don't want your operation to be treated as "no restock limit") which means 10 Motes and 0 Primals will always trigger the Shopping operation for the Primals and and will never be removed from the Shopping scan even if 10 Motes are purchased. If the Maximum Restock Quantity field can be dynamically set to 0 depending on the number of Motes in the inventory and be treated as the restock quantity limit being met, the Primals will be removed from the Shopping scan thus making Shopping more streamlined.