From b43b97991ef3cba1727f944402e8f69ff8ea49da Mon Sep 17 00:00:00 2001 From: Acamaeda Date: Sun, 4 Oct 2020 11:23:38 -0400 Subject: [PATCH] 1.2.4: Added layer notification highlighting, fixed bugs with useful functions Did not add Duke Fishron --- docs/layer-features.md | 12 +++++++----- index.html | 6 ++++++ js/game.js | 30 ++++++++++++++++++++++++------ js/layers.js | 12 ++++++++---- js/temp.js | 2 ++ js/v.js | 1 + 6 files changed, 48 insertions(+), 15 deletions(-) diff --git a/docs/layer-features.md b/docs/layer-features.md index 1ec74ac..98bdf9c 100644 --- a/docs/layer-features.md +++ b/docs/layer-features.md @@ -49,6 +49,11 @@ Key: ], ``` +- branches: **optional**, determines what lines should appear on the tree when this layer is visible. + An array of pairs consisting of a layer name and a number from 1 to 3. + A branch will appear connecting this layer to the correspodnding layer, with the color based on the number. + You should add the branch value to the layer that is unlocked second. + - style: A CSS object containing any CSS that should affect this layer's whole tab. Can also be a function returning a dynamic CSS object. @@ -132,8 +137,5 @@ Key: - incr_order: **optional**, an array of layer ids. When this layer is unlocked for the first time, the "order" value for any not-yet-unlocked layers in this list increases. This can be used to make them harder to unlock. -- branches: **optional**, determines what lines should appear on the tree when this layer is visible. - An array of pairs consisting of a layer name and a number from 1 to 3. - A branch will appear connecting this layer to the correspodnding layer, with the color based on the number. - You should add the branch value to the layer that is unlocked second. - +- should_notify: **optional**, a function to return true if this layer should be highlighted in the tree. + The layer will automatically be highlighted if you can buy an upgrade whether you have this or not. \ No newline at end of file diff --git a/index.html b/index.html index 8868fe8..5f26a27 100644 --- a/index.html +++ b/index.html @@ -45,6 +45,12 @@

+

v1.2.4

+

v1.2.3