Finally, i was able to make a "LUCK" system where the amount of randomly generated loot increases depending on the player's luck. In the first part, i open tier 1 and tier 2 chests with the base luck and in the second part, i increase my luck and reset the map to reopen the same chests.