Salvage v2


I wasn't happy with just leaving the salvage system as basic as it could be, so I flesh out the salvage window and made it all work correctly.

You can now drag items on the to the input slot of the salvage window and when you move over the slot, the slots outline will indicate green if the item is recyclable or red if not.

Placing any item in the input slot will revel its crafting recipe. Items in the recipe will be highlighted green if it can be salvaged or red if not.

As you can see in the attached image of me salvaging items from an axe. I will get the iron bars back but not the sticks.

Pressing the red salvage button in the bottom right of the window will recycle the item in the input slot and give the salvageable items to the player.

This required a few rewrites on the salvage system a few new classes that extend the SlotController class and a day of be freaking out because I tried to make an item catalog editor which kept over writing my item catalog with blank items. But I gave up that for now. I will try again.

So what should I add next? Should I make a salvage table item like the crafting table or should I add a salvage button or tab to the crafting window? I'm leaning towards the second option as it will make it easier for players to recoup items for crafting. And it will also not require the player to craft another item....Though adding salvage as an item would allow for a crafting path to be able to make a salvage table... make the items needed harder to find and craft.

Let me know what you think.

Peace.

Fidel.

Files

Git Repo (Newest version)
External
Jul 15, 2023

Get Player Inventory System

Leave a comment

Log in with itch.io to leave a comment.