mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-23 17:01:49 +00:00
Fixed random freeze I got
This commit is contained in:
parent
c0026268d3
commit
d0d75d1178
1 changed files with 7 additions and 0 deletions
|
@ -912,6 +912,13 @@ const factory = createLayer(id, () => {
|
|||
}
|
||||
|
||||
while (times > 0) {
|
||||
if (
|
||||
!Object.values(allToys).some(i =>
|
||||
Decimal.gte(i.value, computedToyMultiplier.value)
|
||||
)
|
||||
) {
|
||||
return;
|
||||
}
|
||||
while (Decimal.lt(value[toysIndex].value, computedToyMultiplier.value)) {
|
||||
toysIndex = (toysIndex + 1) % value.length;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue