Question Is there a mod that tracks already gotten items at shops like hats?

Apollolux

Greenhorn
Hello! I recently got back into Stardew after a few year hiatus and have been playing mostly vanilla with some quality-of-life mods, texture changes, and item-as-name exploit shenanigans for fun and science (FYI, a Stardrop in the Luau potluck gives good result, but not best result; for science!). Due to the item-as-name exploit shenanigans, I find myself with all the money, so I want to buy all the hats from Hat Mouse but I don't want to buy duplicates every time. Is there some mod that, when I'm at a shop like Hat Mouse or Pierre's, puts an icon or some other signifier on an item that I currently have either in my backpack or one of my chests/dressers/fridges/etcs? Similar to how the crafting tab shows how many you previously crafted of a given item, maybe the shop item shows how many you've gotten in the past or currently have or something, whether you bought it from that shop or acquired it elsewhere. It's a bit difficult to come up with a proper search for such a mod on Nexus if it exists if I don't know how it would be named, but "history" doesn't give the search results I desire.

I'm a programmer myself, both self-taught and with a college degree, so I understand that if such a mod doesn't exist it's probably because the underlying problem is "hard" - likely either search for N items from the current shop in (a variable number of chests + backpack + fridges/mini-fridges if house is expanded + dresser) or somehow have the game keep track of the fact that you've acquired at some point at least one of X items from the master list and compare against the shop but doesn't take into account what you actually still have. In the case of shops in buildings like Pierre's, JojaMart, Krobus, etc maybe the count only gets calculated when you enter the building during the scene transition or something to reduce the lag in displaying the item list when talking to the cashier. Not 100% sure when outdoor shops like Hat Mouse, Desert Trader, Traveling Merchant, Night Market boats, etc should get calculated, but the earliest would probably be when their respective maps get entered and the latest should probably be when their respective cashiers get talked to. Calculation would probably only be flagged to happen if items get fully added or fully deleted rather than simply incremented, decremented, or moved around slots. I understand this would almost certainly not be able to search for placed furniture/decorations/etc in any reasonably fast time, so for now such suggestions would be limited to backpack, dresser(s), fridge(s), and if reasonable chests. This is probably an oversimplification of how I would consider doing it if I were building it into the system myself, but I've never made mods for Stardew before, so I don't really know where to start.

TL;DR - Simply just a "You already have this item" or something similar at shops would probably be more than good enough for my immediate Hat Mouse wants, I would just rather accomplish that without having to drag my existing hat collection out of the dresser every time in order to compare what I already have versus what has just been unlocked that I haven't yet gotten. Same with other shops.
 
Top