Browse Source

UNDO previous commit after PTR. THIS is the actual fix for #1447

tags/v0.6^2
Shaun 4 years ago
parent
commit
d6eda37f7b
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/server/items/generators/spellbook.js

+ 4
- 2
src/server/items/generators/spellbook.js View File

@@ -34,7 +34,9 @@ const buildRolls = (item, blueprint, { random: spellProperties, negativeStats =
if (isNegative)
roll = 1 - roll;

result[prop] = roll;
const scaledRoll = roll * (item.level / consts.maxLevel);

result[prop] = scaledRoll;
}

return result;
@@ -119,7 +121,7 @@ module.exports = {
const isInt = property.indexOf('i_') === 0;
let useProperty = property;
const minRange = range[0];
const maxRange = range[1] * (item.level / consts.maxLevel);
const maxRange = range[1];

let val = minRange + ((maxRange - minRange) * roll);



Loading…
Cancel
Save