Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var l = Object.keys(e);
- var values = {coins: 999999, trophies: 99999, xp: 1400000};
- for (var c = 0; c < l.length; c++) {
- var h = e[l[c]];
- if(h.schemaPrimativeID.includes("currency:trophy")){
- h.balance = values['trophies'];
- }
- else if(h.schemaPrimativeID.includes("stat:xp")){
- h.value = values['xp'];
- }
- else if(h.schemaPrimativeID.includes("currency:coin")){
- h.balance = values['coins'];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement