mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2024-11-25 01:41:45 +00:00
Hide baseAmount if there is none
This commit is contained in:
parent
4cf96b283a
commit
6d47089870
3 changed files with 3 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
||||||
# The Modding Tree changelog:
|
# The Modding Tree changelog:
|
||||||
|
|
||||||
- Fixed styling challenges.
|
- Fixed styling challenges.
|
||||||
|
- No longer attempts to display a base currency when there is none.
|
||||||
|
|
||||||
## v2.π: Incrementally Updated - 2/5/21
|
## v2.π: Incrementally Updated - 2/5/21
|
||||||
- Performance improvements.
|
- Performance improvements.
|
||||||
|
|
|
@ -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.
|
- 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.
|
||||||
|
|
|
@ -227,7 +227,7 @@ function loadVue() {
|
||||||
props: ['layer'],
|
props: ['layer'],
|
||||||
template: `
|
template: `
|
||||||
<div style="margin-top: -13px">
|
<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>
|
<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>
|
<br><br>
|
||||||
<span v-if="tmp[layer].showBest">Your best {{tmp[layer].resource}} is {{formatWhole(player[layer].best)}}<br></span>
|
<span v-if="tmp[layer].showBest">Your best {{tmp[layer].resource}} is {{formatWhole(player[layer].best)}}<br></span>
|
||||||
|
|
Loading…
Reference in a new issue