Add support for 26.1 snapshots
Some checks failed
Deploy to GitHub Pages / build (push) Has been cancelled
Deploy to GitHub Pages / deploy (push) Has been cancelled

This commit is contained in:
Misode
2025-12-17 21:23:43 +01:00
parent 390844275a
commit 10b604cf43
7 changed files with 265 additions and 182 deletions

View File

@@ -646,7 +646,13 @@ function computeInt(provider: any, ctx: LootContext): number {
result += 1
}
}
return result
return result
case 'sum':
let sum = 0
for (const summand of provider.summands ?? []) {
sum += computeInt(summand, ctx)
}
return sum
}
return 0
}
@@ -672,7 +678,13 @@ function computeFloat(provider: any, ctx: LootContext): number {
result += 1
}
}
return result
return result
case 'sum':
let sum = 0
for (const summand of provider.summands ?? []) {
sum += computeFloat(summand, ctx)
}
return sum
}
return 0
}