Skip to content

Commit

Permalink
fix scanner substat detection (#2645)
Browse files Browse the repository at this point in the history
  • Loading branch information
frzyc authored Jan 28, 2025
1 parent 84d48a2 commit 73ba422
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/zzz/db/src/driveDiskScanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export function DDSToZOD(data: DDS[]): IZenlessObjectDescription {
const isSubPercent =
typeof subVal === 'string' && subVal.endsWith('%')
const [keyStr, value] = keyUp.split('+')
const upgrades = value ? parseInt(value) : 1
const upgrades = value ? parseInt(value) + 1 : 1
const key = allDiscSubStatKeys.find(
(k) =>
isPercentStat(k) === isSubPercent &&
Expand Down

0 comments on commit 73ba422

Please sign in to comment.