Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. var l = Object.keys(e);
  2. var values = {coins: 999999, trophies: 99999, xp: 1400000};
  3. for (var c = 0; c < l.length; c++) {
  4. var h = e[l[c]];
  5. if(h.schemaPrimativeID.includes("currency:trophy")){
  6. h.balance = values['trophies'];
  7. }
  8. else if(h.schemaPrimativeID.includes("stat:xp")){
  9. h.value = values['xp'];
  10. }
  11. else if(h.schemaPrimativeID.includes("currency:coin")){
  12. h.balance = values['coins'];
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement