const calc = function(level, minValue, maxValue, typeValue) {
const keyValue = (maxValue - minValue) * (level - 1);
const valueA = Math.ceil(keyValue / 98.0) + minValue;
const valueB = Math.ceil(keyValue / 98.0 / 98.0);
return (valueB + minValue) * (typeValue - 10) + (10 - (typeValue - 10)) * valueA / 10.0;
}
const calc = function(level, minValue, maxValue, typeValue) {
const keyValue = (maxValue - minValue) * (level - 1);
const valueA = Math.ceil(keyValue / 98.0) + minValue;
const valueB = Math.ceil(keyValue / 98.0 / 98.0);
return (valueB + minValue) * (typeValue - 10) + (10 - (typeValue - 10)) * valueA / 10.0;
}