diff --git a/changelog.md b/changelog.md index 6751291..b4b2f61 100644 --- a/changelog.md +++ b/changelog.md @@ -1,8 +1,8 @@ #The Modding Tree changelog: - - +Almost every value in layer data can be a function or a constant value! effectDisplay in Challenges and Upgrades no longer takes an argument +You don't have to have the same amount of upgrades in every row (and challs and buyables) ##v1.3.5 - Completely automated convertToDecimal, now you never have to worry about it again. diff --git a/js/layers.js b/js/layers.js index 62db90a..a428ff7 100644 --- a/js/layers.js +++ b/js/layers.js @@ -80,7 +80,7 @@ addLayer("c", { }, }, upgrades: { - rows: 1, + rows: 2, cols: 3, 11: { title:() => "Generator of Genericness", @@ -120,6 +120,12 @@ addLayer("c", { } // Otherwise use the default }, }, + 22: { + title:() => "This upgrade doesn't exist", + desc:() => "Or does it?.", + cost:() => new Decimal(1), + unl() { return player[this.layer].unl }, // The upgrade is only visible when this is true + }, }, buyables: { rows: 1, diff --git a/js/v.js b/js/v.js index 402a092..3d5342a 100644 --- a/js/v.js +++ b/js/v.js @@ -103,7 +103,7 @@ function loadVue() { Vue.component('chall', { props: ['layer', 'data'], template: ` -