RacinanteOpus

Turkimp and Helium fix for Perky (revised)

Jul 28th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1. function read_save() {
  2. localStorage.zone || ($("#zone").value = game.stats.highestVoidMap.valueTotal || game.global.highestLevelCleared);
  3. var a = input("zone");
  4. localStorage.preset || ($$("#preset > *").forEach(function(a) {
  5. a.selected = parseInt(a.innerHTML.replace("z", "")) < game.global.highestLevelCleared
  6. }), auto_preset());
  7. var b = game.global.heliumLeftover;
  8. /* for (var c in game.portal) b += game.portal[c].heliumSpent; */
  9. for (var c in game.portal) {var ths=0; game.portal[c].hasOwnProperty('heliumSpent')? ths = game.portal[c].heliumSpent : 0; b += ths};
  10. var d = Object.keys(game.portal).filter(function(a) {
  11. return !game.portal[a].locked
  12. });
  13. game.global.canRespecPerks || (d = d.map(function(a) {
  14. return a + ">" + game.portal[a].level
  15. }));
  16. /* var e = mastery("turkimp4") ? 1 : mastery("turkimp3") ? .6 : mastery("turkimp2") ? .4 : mastery("turkimp") ? .3 : .25, */
  17. var e = mastery("turkimp2") ? 1 : mastery("turkimp") ? .4 : .25,
  18. f = 1 + e,
  19. g = 1 + .333 * e,
  20. h = min(floor((a - 101) / 100), game.global.spiresCompleted);
  21. g *= 100 > a ? .7 : 1 + (mastery("stillRowing") ? .3 : .2) * h;
  22. for (var i = 27 * game.unlocks.imps.Jestimp + 15 * game.unlocks.imps.Chronoimp, j = 60 > a ? 0 : 85 > a ? 7 : 160 > a ? 10 : 185 > a ? 14 : 20, k = 0, l = game.global.StaffEquipped.mods || []; k < l.length; k++) {
  23. var m = l[k];
  24. "MinerSpeed" === m[0] ? f *= 1 + .01 * m[1] : "metalDrop" === m[0] && (g *= 1 + .01 * m[1])
  25. }
  26. jobless ? f = 0 : i += (mastery("mapLoot2") ? 5 : 4) * j, update_dg(), $("#helium").value = b + ($("#respec").checked ? 0 : game.resources.helium.owned), $("#unlocks").value = d.join(","), $("#whipimp").checked = game.unlocks.imps.Whipimp, $("#magnimp").checked = game.unlocks.imps.Magnimp, $("#tauntimp").checked = game.unlocks.imps.Tauntimp, $("#venimp").checked = game.unlocks.imps.Venimp, $("#chronojest").value = prettify(i), $("#prod").value = prettify(f), $("#loot").value = prettify(g), $("#breed-timer").value = prettify(mastery("patience") ? 45 : 30)
  27. }
Advertisement
Add Comment
Please, Sign In to add comment