So today, I've pretty much finished the deconstructor UI and system.

Also items in the UI show their sell value next to their item name in the tooltip.

There's always a minimum of 50 silver and 30 copper cost to deconstructing.



Fun fact: if you have the discount card equipped, you get discount on all deconstruction costs!

With this UI you can 'deconstruct' any item you want. This includes modded items.The UI will search for all recipes that create the item you put in it.You can then 'deconstruct' by clicking on the bag icon in a recipe panel, putting the materials in a goodie bag, but taking away whichever item you put in the UI.As you can see, it's rather dynamic. When you disassemble potions, there's a 20% chance material stacks aren't given by the goodie bag when opened. This is to try to work around the alchemy table 'exploit', which allowed you to get infinite materials due to the '1/3 chance to not consume materials when crafting potions'.Also working around the 'free of charge prefixes' is the gold cost of deconstructing. This is either based off of the reforging cost, or the material costs plus/minus the item you put in.Notice how it now says there's a chance of material lossI've sadly lost 30 fallen stars from this bag!If you don't have enough gold, you cannot deconstruct!The goodie bags can be traded, stored, dropped in the world, anything! They retain their info when exiting the world. So you don't have to open them right away! You could use them to easily store materials!