2023-07-03 12:46:13 -04:00
|
|
|
console.log("descriptions.js: Loading vanilla descriptions...");
|
2023-07-04 01:31:47 -04:00
|
|
|
fetch("https://sandboxels-mods.mollthecoder.repl.co/descriptions/vanilla.json",
|
|
|
|
|
{
|
|
|
|
|
referrer: "https://sandboxels.r74n.com/mods/descriptions.js"
|
|
|
|
|
}
|
|
|
|
|
)
|
2023-07-03 12:46:13 -04:00
|
|
|
.then(res=>{
|
|
|
|
|
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!");
|
|
|
|
|
});
|
|
|
|
|
});
|