mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-12-03 13:21:31 +00:00
Fixed random freeze from routing calculating permutations it shouldn't
This commit is contained in:
parent
185ef6cbb2
commit
e42e9d023e
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
|||
|
||||
const currentRoutes = computed(() => {
|
||||
// Manually check milestone req here due to calling generateCity() before milestones get earned
|
||||
if (Decimal.gte(citiesCompleted.value, 7)) {
|
||||
if (Decimal.gte(citiesCompleted.value, 7) || currentCity.value.length >= 12) {
|
||||
return Decimal.factorial(currentCity.value.length).div(2).toNumber();
|
||||
}
|
||||
// Permutation code from https://stackoverflow.com/a/37580979
|
||||
|
|
Loading…
Reference in a new issue