From 437f6128576032a0157e01718908d23c3b6b3a8c Mon Sep 17 00:00:00 2001 From: voidapex11 <154328367+voidapex11@users.noreply.github.com> Date: Wed, 15 May 2024 11:40:50 +0100 Subject: [PATCH 01/12] Update pullers.js --- mods/pullers.js | 124 ++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 121 insertions(+), 3 deletions(-) diff --git a/mods/pullers.js b/mods/pullers.js index 70602c4a..c8c60552 100644 --- a/mods/pullers.js +++ b/mods/pullers.js @@ -2,6 +2,14 @@ // a sandboxels mod that adds pullers /* ==CHANGELOG== + Version 2.0.0 +@voidapex11 +~set max size of the mod description to 1 ++gravity cells ++black hole + it acts like void but it has gravity +~for modders, the gravity range of black holes and gravity cells is customisable + Version 1.2.1 @voidapex11 ~fixed error @@ -254,8 +262,8 @@ elements.up_puller = { state: "solid", } -if (enabledMods.includes("pushers.js")) { - console.log('compatibility with pushers.js and imovable objects coming in a later update of the pullers.js\neventualy...') +if (enabledMods.includes("mods/pushers.js")) { + console.info('compatibility with pushers.js and imovable objects coming in a later update of the pullers.js') } e_pullerColour='#c3a5d6' @@ -350,4 +358,114 @@ elements.up_e_puller = { hardness: 0.85, conduct: 1, state: "solid", -} \ No newline at end of file +} + +function removeItemOnce(arr, value) { + var index = arr.indexOf(value); + if (index > -1) { + arr.splice(index, 1); + console.log('hit') + } + return arr; +} + +elements.gravity_cell = { + color: pullerColour, + properties: { + range: 3, + }, + tick: function(pixel) { + pixel.color = ("#" + ((192 + Math.abs((pixelTicks * 4) % 64)).toString(16) + "e0ad").padStart(6, '0')); + for (j=0; j <=pixel.range; j++) { + + // generate the cooridinates that nabough the grav cell + cords=circleCoords(pixel.x, pixel.y, j) + for (i in cords) { + pos = cords[i] + if (!isEmpty(pos.x,pos.y)&&!(pos.x==pixel.x&&pos.y==pixel.y)){ + x = (pixel.x-pos.x) + y = (pixel.y-pos.y) + + if (x<0) { + x=-1 + } else if (x>0){ + x=1 + } + + if (y<0) { + y=-1 + } else if (y>0){ + y=1 + } + + try { + tryMove(pixelMap[pos.x][pos.y], pos.x+x, pos.y+y) + } catch (error) {}// if there is an error, its probably out of bounds, not my problem :) + } + } + } + doDefaults(pixel); + }, + category: "machines", + density: 10000, + hardness: 1, + conduct: 0, + state: "solid", +} + + +elements.black_hole = { + color: elements.void.color, + maxSize: 1, + properties: { + range: 10, + }, + tick: function(pixel) { + + for (j=0; j <=pixel.range; j++) { + + // generate the cooridinates that neighbour the black hole + cords=circleCoords(pixel.x, pixel.y, j) + for (i in cords) { + pos = cords[i] + if (!isEmpty(pos.x,pos.y)&&!(pos.x==pixel.x&&pos.y==pixel.y)){ + x = (pixel.x-pos.x) + y = (pixel.y-pos.y) + + if (x<0) { + x=-1 + } else if (x>0){ + x=1 + } + + if (y<0) { + y=-1 + } else if (y>0){ + y=1 + } + + try { + tryMove(pixelMap[pos.x][pos.y], pos.x+x, pos.y+y) + } catch (error) {}// if there is an error, its probably out of bounds, not my problem :) + } + } + } + + for (let i = -1; i < 2; i++) { + for (let j = -1; j < 2; j++) { + if (!isEmpty(pixel.x+j,pixel.y+i) && !outOfBounds(pixel.x+j,pixel.y+i)&&!((i==0)&&(j==0))) { + deletePixel(pixel.x+j,pixel.y+i) + } + } + } + + doDefaults(pixel); + }, + category: "machines", + density: 10000, + hardness: 1, + temp: -273.15, + insulate:true, + conduct: 0, + state: "solid", +} From 8cc3cd4924af99ed4be3e4daed7bfa1a68759a09 Mon Sep 17 00:00:00 2001 From: voidapex11 <154328367+voidapex11@users.noreply.github.com> Date: Wed, 15 May 2024 12:01:59 +0100 Subject: [PATCH 02/12] Update pullers.js --- mods/pullers.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mods/pullers.js b/mods/pullers.js index c8c60552..1f88c621 100644 --- a/mods/pullers.js +++ b/mods/pullers.js @@ -419,6 +419,7 @@ elements.black_hole = { maxSize: 1, properties: { range: 10, + immovable: true, }, tick: function(pixel) { @@ -467,5 +468,8 @@ elements.black_hole = { temp: -273.15, insulate:true, conduct: 0, + excludeRandom: true, + noMix: true, state: "solid", + movable: false } From 0a8ccbddf9f8c062423506ed7954d9d72684c7fc Mon Sep 17 00:00:00 2001 From: Jayd-Rubies <155784127+Jayd-Rubies@users.noreply.github.com> Date: Wed, 15 May 2024 13:37:52 -0400 Subject: [PATCH 03/12] removes pixel limit --- mods/nopixellimit.js | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 mods/nopixellimit.js diff --git a/mods/nopixellimit.js b/mods/nopixellimit.js new file mode 100644 index 00000000..44c33146 --- /dev/null +++ b/mods/nopixellimit.js @@ -0,0 +1,2 @@ + maxPixelCount = settings.maxpixels || 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000; + if (settings.maxpixels === 0) { maxPixelCount = 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000; } \ No newline at end of file From 97f150b6a7716bd9846cdebbe10aef4963302f5e Mon Sep 17 00:00:00 2001 From: slweeb <91897291+slweeb@users.noreply.github.com> Date: Wed, 15 May 2024 13:57:23 -0400 Subject: [PATCH 04/12] Update changelog.txt --- changelog.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelog.txt b/changelog.txt index 4ed50c55..8cd27c7a 100644 --- a/changelog.txt +++ b/changelog.txt @@ -93,7 +93,7 @@ A fancier version of this changelog can be found here: https://sandboxels.R74n.c ~ Fixed: Bless and Rock Wall can't be drawn in a line ~ Fixed: Gapes when drawing Bless and Rock Wall fast ~ Fixed: Bless and Rock Wall don't display info - ~ Fixed: Bless and Rock can't use Replace Mode + ~ Fixed: Bless and Rock Wall can't use Replace Mode ~ Fixed: Brown Dwarf Suns can emit Light when eclipsed ~ Fixed: Language selector doesn't update on refresh ~ Fixed: Mouse size continues increasing past max size From 761b8cfd7d12d46f4ffae1f4521ccca41fb7488e Mon Sep 17 00:00:00 2001 From: Jayd-Rubies <155784127+Jayd-Rubies@users.noreply.github.com> Date: Wed, 15 May 2024 14:14:31 -0400 Subject: [PATCH 05/12] Add files via upload --- mods/nopixellimit.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/nopixellimit.js b/mods/nopixellimit.js index 44c33146..a563e1e6 100644 --- a/mods/nopixellimit.js +++ b/mods/nopixellimit.js @@ -1,2 +1,2 @@ - maxPixelCount = settings.maxpixels || 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000; - if (settings.maxpixels === 0) { maxPixelCount = 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000; } \ No newline at end of file + maxPixelCount = settings.maxpixels || Number.MAX_VALUE; + if (settings.maxpixels === 0) { maxPixelCount = Number.MAX_VALUE; } \ No newline at end of file From 50755789d42f886cc82cbcb52d503b12b9c75c23 Mon Sep 17 00:00:00 2001 From: Jayd-Rubies <155784127+Jayd-Rubies@users.noreply.github.com> Date: Wed, 15 May 2024 14:24:19 -0400 Subject: [PATCH 06/12] Add files via upload --- mod-list.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mod-list.html b/mod-list.html index be9438b4..0ac97b0f 100644 --- a/mod-list.html +++ b/mod-list.html @@ -104,6 +104,7 @@ Official alchemy.jsStart with only 4 elements and unlock more by reacting them together. (Most are not possible)R74n +building.jsAdds building generators and materialsR74n classic_explosives.jsAdds back 4 explosives removed in v1.9.3R74n classic_textures.jsUse textures from early versions of the gameR74n color_everything.jsAllows every element to have a custom colorR74n @@ -135,6 +136,7 @@ elementsManager.jsCreate and edit custom elementsggod evenmoretemptools.jsAdds different temperature-modifying tools (±350/tick, NaN, and Infinity)Alice extra_element_info.jsAdds descriptions to various vanilla elements. Used to provide the functionality that desc now does before it was added to vanillaMelecie +extrasaveslots.jsAdds extra saves slots !SAVE IMPORTANT SAVES AS FILES!Jayd find.jsAdds a find mode that highlights a chosen element as pulsating red and yellow (read commit description)Alice jaydsfunctions.jsAdds extra toolsJayd insane_random_events.jsMassively buffs random eventsAlice @@ -143,6 +145,7 @@ moretools.jsAdds more temperature-modifying tools (±10/tick, ±50/tick, and absolute zero tools)Sightnado move_tools.jsAdds tools that move pixelsAlice noconfirm.jsRemoves all confirmation pop upsmollthecoder +nopixellimit.jsRemoves the pixel limitJayd page_color.jsAllows changing the background color outside of the canvas with the “pageColor” query parameterAlice pixelResizeTool.jsAdds a button to change pixel scalefeeshmaster prompt.jsAdds a primitive command consoleAlice @@ -386,4 +389,4 @@ - + \ No newline at end of file From ada99ccd73e3518a3ee79c4d5ae7e84a67c38ba4 Mon Sep 17 00:00:00 2001 From: JustAGenericUsername <92590792+JustAGenericUsername@users.noreply.github.com> Date: Wed, 15 May 2024 16:16:44 -0400 Subject: [PATCH 07/12] mixer and smasher are deprecated --- mods/nousersthings.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/mods/nousersthings.js b/mods/nousersthings.js index 5aedfe34..c35f8108 100644 --- a/mods/nousersthings.js +++ b/mods/nousersthings.js @@ -1722,7 +1722,7 @@ elements.pn_explosion = { elements.smasher = { color: "#606060", behavior: behaviors.WALL, - category: "machines", + category: "deprecated", tick: function(pixel){ for (var i = 0; i < squareCoords.length; i++) { var coord = squareCoords[i]; @@ -1735,11 +1735,12 @@ elements.smasher = { } }, movable: false, + hidden: true }, -elements.mixer = { +elements.mixer_ = { color: "#F0F0F0", behavior: behaviors.WALL, - category: "machines", + category: "deprecated", tick: function(pixel){ pixel.mixList = []; for (var i = 0; i < squareCoords.length; i++) { @@ -1767,6 +1768,8 @@ elements.mixer = { }, movable: false, noMix: true, + hidden: true, + name: "mixer" }, elements.invisiblesupport = { color: "#000000", From 302aabdec16a0d1b082a52b1743d35c3e2c205f3 Mon Sep 17 00:00:00 2001 From: JustAGenericUsername <92590792+JustAGenericUsername@users.noreply.github.com> Date: Wed, 15 May 2024 16:17:50 -0400 Subject: [PATCH 08/12] asd --- mods/nousersthings.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mods/nousersthings.js b/mods/nousersthings.js index c35f8108..d3dcaa0c 100644 --- a/mods/nousersthings.js +++ b/mods/nousersthings.js @@ -1737,7 +1737,8 @@ elements.smasher = { movable: false, hidden: true }, -elements.mixer_ = { +/* +elements.mixer = { color: "#F0F0F0", behavior: behaviors.WALL, category: "deprecated", @@ -1769,8 +1770,8 @@ elements.mixer_ = { movable: false, noMix: true, hidden: true, - name: "mixer" }, +*/ elements.invisiblesupport = { color: "#000000", behavior: behaviors.WALL, From 03cb28d94fa41491415677b692a2d06648dc2aa3 Mon Sep 17 00:00:00 2001 From: JustAGenericUsername <92590792+JustAGenericUsername@users.noreply.github.com> Date: Wed, 15 May 2024 16:27:02 -0400 Subject: [PATCH 09/12] asdasd --- mods/nousersthings.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/mods/nousersthings.js b/mods/nousersthings.js index d3dcaa0c..e9614c07 100644 --- a/mods/nousersthings.js +++ b/mods/nousersthings.js @@ -2902,4 +2902,15 @@ elements.specific_ray_emitter = { } }, insulate: true, +} +elements.run_some_code = { + color: "#68b2cf", + category: "tools", + canPlace: false, + onSelect: function(){ + let code = prompt("Enter code to run") + if (code){ + eval(code) + } + } } \ No newline at end of file From 6c6eadb5718305f38e1181e3e973515a76ac42cd Mon Sep 17 00:00:00 2001 From: JustAGenericUsername <92590792+JustAGenericUsername@users.noreply.github.com> Date: Wed, 15 May 2024 16:35:53 -0400 Subject: [PATCH 10/12] kjhg --- mod-list.html | 1 + 1 file changed, 1 insertion(+) diff --git a/mod-list.html b/mod-list.html index 441c6ccc..8786af82 100644 --- a/mod-list.html +++ b/mod-list.html @@ -285,6 +285,7 @@ elem3.jsAdds all elements and combinations from Elemental 3 [Very Large]Sophie fools+.jsimproves and makes fools.js EXTREMELY annoying.SquareScreamYT funny elements 2022-11-15.jsAdds a few curated randomly-generated elementsAlice +funnynames.jsAdds various ways to mess with the names of elementsnousernamefound funny_solid.jsAdds fecesAlice haseulite.jsAdds Loona-related materials with various propertiesAlice lactose_intolerance_and_celiac.jsMakes humans explode on contact with milk, wheat, bread, or toastNubo318 From 31b9c8535f964b3ed605c34b56231a5d08ee2bdb Mon Sep 17 00:00:00 2001 From: slweeb <91897291+slweeb@users.noreply.github.com> Date: Wed, 15 May 2024 20:58:54 -0400 Subject: [PATCH 11/12] hotfix --- changelog.txt | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/changelog.txt b/changelog.txt index 8cd27c7a..eb60c9e4 100644 --- a/changelog.txt +++ b/changelog.txt @@ -91,7 +91,7 @@ A fancier version of this changelog can be found here: https://sandboxels.R74n.c ~ Fixed: Gaps when drawing fast on mobile ~ Fixed: Middle clicking empty space causes freeze ~ Fixed: Bless and Rock Wall can't be drawn in a line - ~ Fixed: Gapes when drawing Bless and Rock Wall fast + ~ Fixed: Gaps when drawing Bless and Rock Wall fast ~ Fixed: Bless and Rock Wall don't display info ~ Fixed: Bless and Rock Wall can't use Replace Mode ~ Fixed: Brown Dwarf Suns can emit Light when eclipsed diff --git a/index.html b/index.html index b1fd40f3..83f30c3d 100644 --- a/index.html +++ b/index.html @@ -13087,7 +13087,7 @@ behaviorRules = { function circleCoords(x,y,radius) { var coords = []; for (let i = Math.max(0, x - radius); i <= Math.min(width, x + radius); i++) { - for (let j = Math.max(0, y - radius); j <= Math.min(width, y + radius); j++) { + for (let j = Math.max(0, y - radius); j <= Math.min(height, y + radius); j++) { if (Math.pow(i - x, 2) + Math.pow(j - y, 2) <= Math.pow(radius, 2)) { coords.push({x: i,y: j}); } From 82785f83429bcea9647dd8d262a4e7ece64be0df Mon Sep 17 00:00:00 2001 From: slweeb <91897291+slweeb@users.noreply.github.com> Date: Wed, 15 May 2024 22:59:18 -0400 Subject: [PATCH 12/12] hotfix --- index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/index.html b/index.html index 83f30c3d..5497b621 100644 --- a/index.html +++ b/index.html @@ -15492,6 +15492,7 @@ window.onload = function() { function autoGen(newname,element,autoType) { var autoInfo = autoElements[autoType]; var newcolor = elements[element].colorObject; + if (!newcolor) { newcolor = {r:255,g:255,b:255} }; var colorList = []; var colorObjectList = []; // if newcolor is not an array, put it in an array