Platinum added a new file:
QuoteDisplay MoreDon't know what's worth your backpack space? Don't know if some random attachment is actually worth 666k in the flea market? (Looking at you M-LOK 4.1"). Introducing Eyes of a Trader. With this mod, you'll know approximately how much your loot is worth so you can decide whether you want to haul it to extract or dump it on the floor.
Features:
- Displays Trader price & Flea market price in the description of most items (item types and whether to use custom background colours configurable in categories.json)
- Changes item icon background colour to represent item value (Price range, colours, trader vs flea, all configurable. Uses trader value per slot by default)
- Ability to automatically use Flea market value for icon colour when Flea market value is much higher than the Trader value (Enabled by default. Can be disabled or ratio tweaked)
- Changes backpack background colours depending on how many slots they hold.
Custom colours (can be disabled via useCustomBackgroundColours set to false):
From cheapest to most valuable:
brown (<3k per slot vendor, <5k per slot flea)
red (3-6k per slot vendor, 5-9k per slot flea)
yellow (6-9k per slot vendor, 9-12k per slot flea)
green (9-11k per slot vendor, 12-16k per slot flea)
blue (11k-13k per slot vendor, 16-20k per slot flea)
violet (>13k per slot vendor, >20k per slot flea)
You can change the colours for any price range in config.json using the colours found in: Resources: Item properties list
Auto use flea market value for background colour:
There's a lot of items that vendor poorly like toothpaste or syringes ~1k but actually have a flea value of around 10k. By default, when the flea value is twice the vendor value, the mod will display the flea market value icon colour. This can be disabled in config.json via autoUseFleaPricing.enabled = false if you don't sell on the flea much.
If you have useFleaPricesForBackground = true however, the above logic will not apply since you're always using the flea price for the icon colour anyway.
Installation:
Copy contents of .zip to your <spt_aki_dir>/user/mods folder.
Config help:
Most of the config values should be self explanatory but here are some of the more confusing ones explained.
delayStartInSeconds (default 7): makes the mod load later so other mods like Lua's flea market updater can be loaded first which allows my mod to retrieve the updated values. Set this higher to maybe 10s if it's still not showing the updated prices. A sure way is to see in the console that it says
[Eyes of a Trader]: Success! Found xxxx items to update. after
Lua-FleaMarketPriceUpdater: Generated initial flea market offers
updateVioletItemBackground (default false): updates the background of items with an existing violet backgrounds. These are generally special items (that are already valuable) so I didn't want to touch them at all, just like keys.
Screenshots: