Use inventory quantity in custom sources
Add an inventory custom source.
For example, when I use the sniper, I have a custom source which check if objects are below 90% of DBMarket.
My actual problem is that I don't want to buy objects when I already have 10 * DBRegionSoldPerDay or more.
A custom source I really would enjoy to use would be something like
maxquantitywanted = roundup(DBRegionSoldPerDay * 10)
shopping price = iflte(maxquantitywanted, Inventory, 0.9 * DBMarket)