Fixed tree node locked tooltip appearing before unlocking the layer

This commit is contained in:
thepaperpilot 2021-06-23 20:09:44 -05:00
parent 514752056c
commit f1340b1b24
2 changed files with 1 additions and 2 deletions

View file

@ -83,7 +83,6 @@ export default {
},
openDialog(dialog) {
this[`show${dialog}`] = true;
console.log(`show${dialog}`, this[`show${dialog}`]);
},
closeDialog(dialog) {
this[`show${dialog}`] = false;

View file

@ -72,7 +72,7 @@ export default {
return this.layer.tooltipLocked || this.layer.tooltip || 'I am a button!';
}
}
if (this.layer.unlocked) {
if (player[this.id].unlocked) {
return this.layer.tooltip || `${formatWhole(player[this.id].points)} ${this.layer.resource}`;
} else {
return this.layer.tooltipLocked ||