added classes for calculating legendary gem upgrade chance