mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-23 00:42:09 +00:00
Fixed random freeze from routing calculating permutations it shouldn't
This commit is contained in:
parent
23782e3500
commit
ad00101b8d
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