1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2025-05-10 20:11:33 +00:00

Branches can use no color id, or custom hex codes

This commit is contained in:
Acamaeda 2020-10-08 20:35:08 -04:00
parent 38e9affa7f
commit d84891ecc6
5 changed files with 18 additions and 8 deletions

View file

@ -289,7 +289,7 @@ addLayer("f", {
},
row: 1,
layerShown() {return true},
branches: [["c", 1]], // Each pair corresponds to a line added to the tree when this node is unlocked. The letter is the other end of the line, and the number affects the color, 1 is default
branches: ["c"], // When this layer appears, a branch will appear from this layer to any layers here. Each entry can be a pair consisting of a layer id and a color.
tooltipLocked() { // Optional, tooltip displays when the layer is locked
return ("This weird farmer dinosaur will only see you if you have at least " + this.requires() + " candies. You only have " + formatWhole(player.points))