Skip to content

Commit

Permalink
guide the idiotic javascript by moving its feet manually to walk it a…
Browse files Browse the repository at this point in the history
…long a path
  • Loading branch information
orbit-loona authored Jan 18, 2024
1 parent 8112ff4 commit b0067c3
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion mods/a_mod_by_alice.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit b0067c3

Please sign in to comment.