Updated Black Damp

It now takes the background color setting for its invisibility.
This commit is contained in:
Lily-129 2022-02-05 20:37:34 -05:00 committed by GitHub
parent 4ef62c8b45
commit b0f1b5302f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -180,7 +180,9 @@ elements.black_damp = {
"fire": { elem2: null },
},
tick: function(pixel) {
pixel.color = "rgb(0,0,0)"
backgroundColor = hexToRGB(settings.bg);
rgbValue = "rgb("+backgroundColor.r+","+backgroundColor.g+","+backgroundColor.b+")";
pixel.color = rgbValue;
},
hardness: 0.6,
category: "gases",