mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-30 17:49:34 +00:00
Add support for 26.1 snapshots
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user