Just a quick question.
I have an inventory system in place which is basically an array of Structs which hold all the item specific information.
One of the item stats is ‘Condition’. Basically I want the item to degrade over time. So let’s say it starts with 100% condition. How would someone go about making it so when that item is in the inventory, it degrades over time. So I pick it up, it’s 100% (already done), and let’s say 10 minutes later, i check the inventory and the item has degraded to 95%. I’m just not sure how to get it to degrade over time.
I could always use a timer to modify the ‘Condition’ variable inside the struct, but wouldn’t this be costly if I have many items in the inventory that do the same thing.
Just looking for some ideas on how someone might approach this.