diff --git a/changelog.md b/changelog.md index 9ea1375..edeedc6 100644 --- a/changelog.md +++ b/changelog.md @@ -5,6 +5,9 @@ - The prestige/sec display now shows decimals. - resetsNothing now works immediately on a reset that enables it. - Added onComplete for milestones. + +- Fixed challenges with no currencyDisplayName using "points" instead of the mod's pointsName. +- inChallenge no longer can return undefined. - Fixed certain things skipping negative rows (now they are treated like non-numeric rows, and don't appear in the tree still). - Things are 0.2% more optimized. diff --git a/js/components.js b/js/components.js index bc1ca2d..d9eb8dc 100644 --- a/js/components.js +++ b/js/components.js @@ -144,7 +144,7 @@ function loadVue() {
- Goal: {{format(tmp[layer].challenges[data].goal)}} {{tmp[layer].challenges[data].currencyDisplayName ? tmp[layer].challenges[data].currencyDisplayName : "points"}}
+ Goal: {{format(tmp[layer].challenges[data].goal)}} {{tmp[layer].challenges[data].currencyDisplayName ? tmp[layer].challenges[data].currencyDisplayName : modInfo.pointsName}}
Reward:
Currently:
diff --git a/js/utils.js b/js/utils.js index 9a348c3..a5015f5 100644 --- a/js/utils.js +++ b/js/utils.js @@ -131,7 +131,8 @@ function inChallenge(layer, id) { if (challenge == id) return true if (layers[layer].challenges[challenge].countsAs) - return tmp[layer].challenges[challenge].countsAs.includes(id) + return tmp[layer].challenges[challenge].countsAs.includes(id) || false + return false } // ************ Misc ************