Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var entities = [];
- var defaultStats = [];
- function loadStats(){
- entities = loadJSON(`http://${host}/test%20dictionary/settings/entities.json`);
- defaultStats = [];
- for (let index = 0; index < entities.critter.length; index++) {
- let crit = `${sections(entities.critter[index])[0]}`;
- const url = `http://${host}/entity%20dictionary/json/${crit}.json`;
- console.log(url);
- const jsonData = loadJSON(url);
- defaultStats[`${crit}`] = jsonData[`${crit}`];
- }
- console.log(defaultStats);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement