2023-07-11 11:35:24 -04:00
|
|
|
fetch("https://eoynkne6jon7kld.m.pipedream.net/descriptions-analytics").catch(_=>{});
|
2023-07-03 12:46:13 -04:00
|
|
|
console.log("descriptions.js: Loading vanilla descriptions...");
|
2023-07-11 11:35:24 -04:00
|
|
|
fetch (
|
|
|
|
|
"https://mollthecoder.github.io/Sandboxels-Descriptions/descriptions/vanilla.json",
|
|
|
|
|
{
|
|
|
|
|
referrer: "https://sandboxels.r74n.com/mods/descriptions.js"
|
|
|
|
|
}
|
|
|
|
|
).then(res=>{
|
2023-07-03 12:46:13 -04:00
|
|
|
res.json().then(json=>{
|
|
|
|
|
for(const element in json) {
|
|
|
|
|
// If the element doesn't exist (for example, nocancer2.js) then don't try to change it.
|
|
|
|
|
if(!elements.hasOwnProperty(element)) continue;
|
|
|
|
|
elements[element].desc = json[element];
|
|
|
|
|
}
|
|
|
|
|
console.log("descriptions.js: Loaded vanilla descriptions!");
|
|
|
|
|
});
|
|
|
|
|
});
|