Skip to content

Commit

Permalink
ignore whatever lvMax is doing if it's lower than 5
Browse files Browse the repository at this point in the history
  • Loading branch information
zeddidragon committed Feb 24, 2023
1 parent faa0ede commit 4add3cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions helpers/calcdata5.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ async function processWeapon({ value: node }) {
const arr = isSubArray ? value[0].value : value
wpn[prop] = {
base: +arr[0].value.toFixed(2),
algo: +arr[1].value.toFixed(2),
lvMin: +arr[2].value.toFixed(2),
lvMax: +arr[3].value.toFixed(2),
algo: +arr[1].value,
lvMin: +arr[2].value,
lvMax: Math.max(5, +arr[3].value),
zero: +arr[4].value.toFixed(2),
exp: +arr[5].value.toFixed(2),
type: arr[0].type,
Expand Down

0 comments on commit 4add3cb

Please sign in to comment.