Skip to content

Commit

Permalink
Update equip.js
Browse files Browse the repository at this point in the history
  • Loading branch information
cyomega authored May 16, 2024
1 parent c518395 commit 8e47cb9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions equip.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,9 @@ $(document).ready(function() {
statMin[i] = Number(statRequire[j] * statModifier[i]);
}
const goal = Number(statMin.reduce((a, c) => {
if (c == -1)
c = 0;
return a + c;
let x = a == -1 ? 0 : a;
let y = c == -1 ? 0 : c;
return x + y;
}));
statName = ['hp', 'lock', 'dodge', 'ini', 'dmg', 'res'];
for (let i = data.length - 1; i >= 0; i--) {
Expand Down

0 comments on commit 8e47cb9

Please sign in to comment.