unhardcode alkahest blacklist

This commit is contained in:
Laetitia (O-01-67) 2022-11-13 09:52:43 -05:00 committed by GitHub
parent 1c4bd1601e
commit e01df3ce43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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;
};