Allowed carryMultiplier to be a decimal

closes #100
This commit is contained in:
Stefan Zermatten
2017-07-13 09:50:20 +02:00
parent 09d1ac9ba3
commit 1cfec1ca45

View File

@@ -257,7 +257,10 @@ var attributeBase = preventLoop(function(charId, statName){
var result = (base + add) * mul;
if (result < min) result = min;
if (result > max) result = max;
// Don't round carry multiplier
if (statName === "carryMultiplier"){
return result;
}
return Math.floor(result);
});