Stardew Valley

File information

Last updated

Original upload

Created by

barfytheclown

Uploaded by

barfytheclown

Virus scan

Safe to use

Tags for this mod

About this mod

Change flowers to a single color or reduce the quality of items in order to save chest and fridge space at the click of a button. Configure whether to exclude or include specific items, item qualities, and item categories.

Requirements
Permissions and credits
Mirrors
Changelogs
Tired of having 42 minifridges just to be able to craft a large quantity of any cooking recipe at will? This mod can help.

Why shouldn't you be able to smash (or gently tap) a fruit with a hammer to reduce it's quality? Why should you need two dozen slots to hold Blue Jazz for your Lucky Lunches? With this mod, two dozen inventory slots can become one.

Change flowers to a single color or reduce the quality of items in order to save chest and fridge space at the click of a button.

Configure whether to exclude or include specific items, item qualities, and item categories--protecting yourself from accidentally messing up your stash of Iridium quality Ancient Fruit Wine.


This mod affects containers (chests, fridges) only. It will not modify the player inventory.

Color Smash:
Affects only flowers.
Changes all flowers in a container, except those excluded in the config, to one color so that they will stack.

Quality Smash:
Reduces all items in a container, except those excluded in the config, to lowest quality so that they will stack.



Installation:

Drop the QualitySmash folder contained in the zip file in your SMAPI Mods folder.

This mod is built against SMAPI 3.9.1, and some of the settings used in the mod (specifically zoom related) will likely make it incompatible with SDV 1.4 or older



Usage Instructions:
Original smash method using UI buttons:
If enabled in the config, two buttons will appear to the right of the sort/quickstack buttons when interacting with a chest or fridge
Smash Colors button:  Will change all flowers in the currently open chest/fridge to one color, then combine the stacks. Flower types can be excluded via the config
Smash Quality button: Will reduce all items in the active chest/fridge, except those excluded in the config, to lowest quality and then combine the stacks

New smash method using keyboard shortcuts (1.1.0):  Disabled by default
Smashing using this method does NOT adhere to the filters defined in the config. Any and all items will be smashed
If enabled in the config, holding either 'C' (color) or 'Q' (quality) then clicking on an item in any inventory will smash that item. This includes any containers or the player inventory
Quality smashing using this method will only reduce the quality of the stack by one step: Iridium -> Gold, Gold -> Silver, etc.



Config:

The mod can be configured to not affect certain items/categories of items. This is included as protection against mistakes

You will want to look at these options as there are default values that you may not like.

The config file itself contains brief descriptions of the options, disguised as options (since json doesn't support comments.) Changing these descriptions will have no effect on the mod.

EnableUISmashButtons
Values: true or false
Default: true
If true, the Smash Colors and Smash Quality buttons will appear when opening a chest or fridge

EnableSingleItemSmashKeybinds
Values: true or false
Default: false
If true, enables the use of single item smashing using keybinds

ColorSmashKeybind
Values: Any keyboard key
Default: 'C'
The key to hold when in order to color smash an item

QualitySmashKeybind

Values: Any keyboard key
Default: 'Q'
The key to hold when in order to quality smash an item


IgnoreIridium
Values: true or false
Default: true
If true, Quality Smash will not affect items that are iridium quality.

IgnoreIridiumItemExceptions

Values: A list of item IDs
Default: 296 (Salmonberry)
Any iridium quality items listed in this option will be smashed to basic quality, regardless of the value of IgnoreIridium

IgnoreIridiumCategoryExceptions
Values: A list of category IDs. A text file containing a list of valid category IDs is included in the mod's docs folder
Default: -4 (Fish)
Any iridium quality items that fall under a category listed here will be smashed to basic quality, regardless of the value of IgnoreIridium.

IgnoreGold
Values: true or false
Default: false
If true, Quality Smash will not affect items that are gold quality.


IgnoreSilver
Values: true or false
Default: false
If true, Quality Smash will not affect items that are silver quality.


IgnoreItemsColor
Values: A list of item IDs
Default: 591 (Tulip), 593 (Summer Spangle) -- Flowers not used in recipes
Any item IDs listed here will be ignored by Smash Colors

IgnoreItemsQuality
Values: A list of item IDs
Default: Wine, Mead, Pale Ale, Beer, Cheese, Goat Cheese
Any item IDs listed here will be ignored by Smash Quality, regardless of their quality

IgnoreItemsCategory

Values: A list of category IDs
Default: -26 (Artisan Goods)
Any items that fall under a category listed here will be ignored by Smash Quality, regardless of their quality



I threw this mod together because no suitable alternative seemed to exist. As a cooking hoarder, I was tired of having 20+ minifridges to store varying colors and qualities of items.

May or may not work with expanded fridge, as I don't use it.