1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2024-11-21 16:13:55 +00:00

Hide baseAmount if there is none

This commit is contained in:
Harley White 2021-04-07 14:07:22 -04:00
parent 4cf96b283a
commit 6d47089870
3 changed files with 3 additions and 2 deletions

View file

@ -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.

View file

@ -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.

View file

@ -227,7 +227,7 @@ function loadVue() {
props: ['layer'],
template: `
<div style="margin-top: -13px">
<span><br>You have {{formatWhole(tmp[layer].baseAmount)}} {{tmp[layer].baseResource}}</span>
<span v-if="tmp[layer].baseAmount"><br>You have {{formatWhole(tmp[layer].baseAmount)}} {{tmp[layer].baseResource}}</span>
<span v-if="tmp[layer].passiveGeneration"><br>You are gaining {{formatWhole(tmp[layer].resetGain.times(tmp[layer].passiveGeneration))}} {{tmp[layer].resource}} per second</span>
<br><br>
<span v-if="tmp[layer].showBest">Your best {{tmp[layer].resource}} is {{formatWhole(player[layer].best)}}<br></span>