From e01df3ce436c8bff65213ec8806a35202af9f35f Mon Sep 17 00:00:00 2001 From: "Laetitia (O-01-67)" <68935009+O-01-67@users.noreply.github.com> Date: Sun, 13 Nov 2022 09:52:43 -0500 Subject: [PATCH] unhardcode alkahest blacklist --- mods/alkahest.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mods/alkahest.js b/mods/alkahest.js index 2d24da06..157adefe 100644 --- a/mods/alkahest.js +++ b/mods/alkahest.js @@ -1,3 +1,5 @@ +alkahestBlacklist = ["alkahest","alkahest_fairy","wall","alkahest_spout"] + elements.alkahest = { color: "#33eeee", behavior: behaviors.LIQUID_OLD, @@ -17,7 +19,7 @@ elements.alkahest = { if(!isEmpty(checkPosX,checkPosY,true)) { var newPixel = pixelMap[checkPosX][checkPosY]; var newElement = newPixel.element; - if(![pixel.element,"wall","alkahest_spout"].includes(newElement)) { //unless someone's willing to implement dragon parts + if(!alkahestBlacklist.includes(newElement)) { //unless someone's willing to implement dragon parts if(typeof(pixel[newElement]) === "undefined") { pixel[newElement] = 0; };