guide the idiotic javascript by moving its feet manually to walk it along a path

This commit is contained in:
An Orbit 2024-01-18 16:40:52 -05:00 committed by GitHub
parent 8112ff4c59
commit b0067c3e65
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 15 additions and 1 deletions

View File

@ -27603,7 +27603,21 @@ Make sure to save your command in a file if you want to add this preset again.`
});
lightlikes = ["light","flash","laser","radiation","insulate_flash"];
grbBreakIntos = Object.keys(elements).filter(function(elemName) {
return elements[elemName].breakInto && elements[elemName].breakInto.includes("gamma_ray_burst");
var to = typeof(elements[elemName]);
if(to == "undefined") {
return false
} else {
var to2 = typeof(elements[elemName].breakInto);
if(to2 == "undefined") {
return false
} else {
if(elements[elemName].breakInto instanceof Array) {
return elements[elemName].breakInto.includes("gamma_ray_burst")
} else {
return elements[elemName].breakInto == "gamma_ray_burst"
}
}
}
});
elements.insulate_flash = {