From a641aa7e862c5ce29ab868e4a6910a468b138b2c Mon Sep 17 00:00:00 2001 From: Lily-129 <68935009+Lily-129@users.noreply.github.com> Date: Thu, 30 Dec 2021 22:30:34 -0500 Subject: [PATCH 1/2] Add CF to behavior doc comment Copied the comment from CF to behavior rule list --- index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/index.html b/index.html index cb9efded..53f7304e 100644 --- a/index.html +++ b/index.html @@ -2844,6 +2844,7 @@ SP = Support (Doesn't move if all aren't empty) DL = Delete CL = Clone + CF = Clone first touched CH = Change RP = Replace (Move to an existing element) CR:element_name = Create a pixel of element_name From 013b58228664207715196736f7b608a8e2e6b7fc Mon Sep 17 00:00:00 2001 From: Lily-129 <68935009+Lily-129@users.noreply.github.com> Date: Fri, 31 Dec 2021 01:04:30 -0500 Subject: [PATCH 2/2] Changed NaN detection Tested by changing the cooler's value from "2" to "sex". With (arg == NaN), the cooler cooled to NaN. With (isNaN(arg)), it cools by 1. --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index cb9efded..13515f91 100644 --- a/index.html +++ b/index.html @@ -3029,7 +3029,7 @@ if (!(newPixel.element == pixel.element)) { if (arg != null) {arg = parseFloat(arg)} else {arg = 1} - if (arg == NaN) {arg = 1} + if (isNaN(arg)) {arg = 1} newPixel.temp += arg; pixelTempCheck(newPixel); } @@ -3042,7 +3042,7 @@ if (!(newPixel.element == pixel.element)) { if (arg != null) {arg = parseFloat(arg)} else {arg = 1} - if (arg == NaN) {arg = 1} + if (isNaN(arg)) {arg = 1} newPixel.temp -= arg; pixelTempCheck(newPixel); }