simplify quality calculation for potions

cutoff, if exceeding limits, instead of repeating the calculation
Merge branch 'develop' of ssh://illarion.org:1010/scripts into develop