mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2024-11-22 00:21:32 +00:00
Fixed upgrades not changing appearance when autobought.
This commit is contained in:
parent
bcb05d8a9c
commit
9d060e1035
2 changed files with 3 additions and 3 deletions
|
@ -16,9 +16,9 @@ let modInfo = {
|
||||||
|
|
||||||
// Set your version in num and name, but leave the tmt values so people know what version it is
|
// Set your version in num and name, but leave the tmt values so people know what version it is
|
||||||
let VERSION = {
|
let VERSION = {
|
||||||
num: "2.0.5",
|
num: "2.0.5.1",
|
||||||
name: "Pinnacle of Achievement Mountain",
|
name: "Pinnacle of Achievement Mountain",
|
||||||
tmtNum: "2.0.5",
|
tmtNum: "2.0.5.1",
|
||||||
tmtName: "Pinnacle of Achievement Mountain"
|
tmtName: "Pinnacle of Achievement Mountain"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
2
js/v.js
2
js/v.js
|
@ -132,7 +132,7 @@ function loadVue() {
|
||||||
Vue.component('upgrade', {
|
Vue.component('upgrade', {
|
||||||
props: ['layer', 'data'],
|
props: ['layer', 'data'],
|
||||||
template: `
|
template: `
|
||||||
<button v-if="layers[layer].upgrades && layers[layer].upgrades[data]!== undefined && tmp[layer].upgrades[data].unlocked" v-on:click="buyUpg(layer, data)" v-bind:class="{ [layer]: true, upg: true, bought: player[layer].upgrades.includes(data), locked: (!(canAffordUpgrade(layer, data))&&!player[layer].upgrades.includes(data)), can: (canAffordUpgrade(layer, data)&&!player[layer].upgrades.includes(data))}"
|
<button v-if="layers[layer].upgrades && layers[layer].upgrades[data]!== undefined && tmp[layer].upgrades[data].unlocked" v-on:click="buyUpg(layer, data)" v-bind:class="{ [layer]: true, upg: true, bought: hasUpgrade(layer, data), locked: (!(canAffordUpgrade(layer, data))&&!hasUpgrade(layer, data)), can: (canAffordUpgrade(layer, data)&&!hasUpgrade(layer, data))}"
|
||||||
v-bind:style="[((!hasUpgrade(layer, data) && canAffordUpgrade(layer, data)) ? {'background-color': tmp[layer].color} : {}), tmp[layer].upgrades[data].style]">
|
v-bind:style="[((!hasUpgrade(layer, data) && canAffordUpgrade(layer, data)) ? {'background-color': tmp[layer].color} : {}), tmp[layer].upgrades[data].style]">
|
||||||
<span v-if= "tmp[layer].upgrades[data].title"><h3 v-html="tmp[layer].upgrades[data].title"></h3><br></span>
|
<span v-if= "tmp[layer].upgrades[data].title"><h3 v-html="tmp[layer].upgrades[data].title"></h3><br></span>
|
||||||
<span v-html="tmp[layer].upgrades[data].description"></span>
|
<span v-html="tmp[layer].upgrades[data].description"></span>
|
||||||
|
|
Loading…
Reference in a new issue