https://jsfiddle.net/dustspace7/ndo8hwef/
https://notes.io/w3DdQ
What is an Item Upgrader? Item upgrader allows players to increase the quality of their gear. Upgrading items requires the right currency and items. For weapons and armor this includes Valorstones and crests. Other upgrades, such as Hot Potato Books, give weapons an increase in stats or let them be used in dungeons. These upgrades are typically cash-based items. Leveling A number of different sources can be used to upgrade the level of equipment. Depending on the item type and upgrade track, it will cost Valorstones