My game will have gacha in it but the items gained won't have any value as duplicates so I want to make an automatic refund system that gives players currency when they receive a duplicate. Right now I use the drop table saved as a bundle to emulate the random chance but I know no way to refund the duplicate. What would be the best approach to implement this system. Items with my own gacha logic or is there an already built in way to do this