Item Salvage


Hello people,

This week I have been working on adding a method to salvage ingredients from crafted items. the main methods are in place I just need to tidy it up and add a key binding to the demo.

No screen shots or vids right this week, but its basically a window with a single slot. If a crafted item is placed in the salvage slot will be consumed and the items used to crafted it will placed in the players inventory as if they had just been picked up.

This is a simplistic implantation, but if it allow you to build the salvaging system out to better fit your game. Perhaps you want all items return to the player or maybe you want to limit or randomize the retrieved items based on the items durability or the player dexterity.

I also fixed a bug that was preventing the save data from being written and or read correctly if the player ended the game while dropped items still remained in the world.

Fixed a number of smaller code issues and cleaned up the demo a bit. Next I think I will work on the player controller for the demo and move my focus improving controller support. There are still some functions that can only be achieved with the mouse. its taken me a while to work out a plan to allow the player to move items to and from the crafting window and build recipes, without using the mouse.

Lastly, for this week, I also have a couple of other projects on the go and split my time between them as I hit road blocks or some other issue. Working on multiple projects helps me avoid some of the boredom and frustration of looking at the same code day after day and making little progress. So if you see little happening here please check out my other system projects. WeaponsRack (coming soon!) and Window Be LikeThey are related tot he work I'm doing here and part of a larger longer term project I'm working towards. 

Until next time TC

Fidel.

Files

Git Repo (Newest version)
External
Jul 15, 2023

Get Unity Player Inventory System

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.