30 - (lvl - 77) * 3, lvl >= 77.