1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2025-04-16 10:50:59 +00:00

Made point generation make sense

This commit is contained in:
Acamaeda 2020-10-11 18:38:54 -04:00
parent 18898f519e
commit e9d0f17d41
5 changed files with 20 additions and 18 deletions

View file

@ -178,9 +178,6 @@ addLayer("c", {
if(layers[resettingLayer].row > this.row) fullLayerReset(this.layer) // This is actually the default behavior
},
layerShown() {return true}, // Condition for when layer appears on the tree
update(diff) {
if (player[this.layer].upgrades.includes(11)) player.points = player.points.add(tmp.pointGen.times(diff)).max(0)
}, // Do any gameloop things (e.g. resource generation) inherent to this layer
automate() {
}, // Do any automation inherent to this layer if appropriate
resetsNothing() {return false},