don't count equiped ingredients in crafting menu

Justus

Member
If we has only 1 sword which is already equiped, and it's also one of the ingredients to make another item.
Then in the crafting menu, the amount of ingredients will shows green but when we decide the amount to consume it, nothing happen,
this use model is a little bit confusing.
Could you please make an enhancement which allow us ignore the equiped equipment in the Recipe ingredient view?
Just like we don't count the items which already stored in the storage box.
 
Please find the updated script below. I've added a way to define which ItemCollection to look into to get the amount.

So now you can set it on your Item View For Ingredient prefab
1654606804531.png
 

Attachments

  • AmountComparisonItemView.cs
    2.9 KB · Views: 1
Top