From 6d470898707b80cfb17022f71473262f924ca6f2 Mon Sep 17 00:00:00 2001 From: Harley White Date: Wed, 7 Apr 2021 14:07:22 -0400 Subject: [PATCH] Hide baseAmount if there is none --- changelog.md | 1 + docs/clickables.md | 2 +- js/components.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index 0213520..3a5c5fc 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,7 @@ # The Modding Tree changelog: - Fixed styling challenges. +- No longer attempts to display a base currency when there is none. ## v2.π: Incrementally Updated - 2/5/21 - Performance improvements. diff --git a/docs/clickables.md b/docs/clickables.md index 70a35fd..4fc7af7 100644 --- a/docs/clickables.md +++ b/docs/clickables.md @@ -52,4 +52,4 @@ You can also use these features on the clickables object to add a button above a - masterButtonText: **optional**. Text to display on the Master Button. -- showMasterButton(): **optional**. A function determining whether or not to show the button. Defaults to true if absent. +- showMasterButton(): **optional**. A function determining whether or not to show the button, if masterButtonPress is defined. Defaults to true if absent. diff --git a/js/components.js b/js/components.js index 0d41123..815c23d 100644 --- a/js/components.js +++ b/js/components.js @@ -227,7 +227,7 @@ function loadVue() { props: ['layer'], template: `
-
You have {{formatWhole(tmp[layer].baseAmount)}} {{tmp[layer].baseResource}}
+
You have {{formatWhole(tmp[layer].baseAmount)}} {{tmp[layer].baseResource}}

You are gaining {{formatWhole(tmp[layer].resetGain.times(tmp[layer].passiveGeneration))}} {{tmp[layer].resource}} per second


Your best {{tmp[layer].resource}} is {{formatWhole(player[layer].best)}}