From 05300ffd3373e1d7c24a7deb6e3a36f123ab8572 Mon Sep 17 00:00:00 2001 From: AurySystem <22009843+AurySystem@users.noreply.github.com> Date: Sun, 30 Mar 2025 16:41:01 -0400 Subject: [PATCH] very minor bugfixes missing values arrays no longer pushes values onto the global values() function as keys json/dragon only usage of nested subtractions now correctly uses the subtraction of the channel instead of inverting the addition --- the-one-true-todey-file-of-cellpond.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/the-one-true-todey-file-of-cellpond.js b/the-one-true-todey-file-of-cellpond.js index 5e3ea1b..dead835 100644 --- a/the-one-true-todey-file-of-cellpond.js +++ b/the-one-true-todey-file-of-cellpond.js @@ -1551,8 +1551,9 @@ on.load(() => { const makeNumber = ({values, channel = 0, variable, add, subtract} = {}) => { let numberValues = undefined - if (variable !== undefined) { + if (variable !== undefined || values === ({}).values) { // placeholder for places in the codebase that don't specify a source! + // also placeholder for places in the codebase with empty calls numberValues = [true, true, true, true, true, true, true, true, true, true] //numberValues = [false, false, false, false, false, false, false, false, false, false] } @@ -2394,7 +2395,7 @@ on.load(() => { } if (addend.subtract !== undefined) { - results = addChannelToResults(results, addend.add, {source, multiplier: -1, isHue}) + results = addChannelToResults(results, addend.subtract, {source, multiplier: -1, isHue}) } return results