From 3f0b0b8ccc6e64798894bb7f76378e127ce1fa93 Mon Sep 17 00:00:00 2001 From: biglyderv Date: Mon, 10 Mar 2025 05:14:15 -0400 Subject: [PATCH] add intersection upgrade --- docs/js/idle.js | 1 + docs/js/upgrade.js | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/docs/js/idle.js b/docs/js/idle.js index 1620650..91628ea 100644 --- a/docs/js/idle.js +++ b/docs/js/idle.js @@ -48,6 +48,7 @@ setInterval(function () { bonus = (bonus) ** 0.05; let f = (nGain + getBonus * bonus * 10000 + 10) / (nothingness + 10); + f /= (counts.intersectThings + 1); let dist = Math.sqrt(a[0] ** 2 + a[1] ** 2) dist = (f * 90 / dist) ** 0.1; diff --git a/docs/js/upgrade.js b/docs/js/upgrade.js index c2e47bc..86d06cf 100644 --- a/docs/js/upgrade.js +++ b/docs/js/upgrade.js @@ -4,6 +4,10 @@ exec.doNothing = function() { } +exec.intersectThings = function() { + +} + exec.addCube = function () { cubePos.push([Math.random() * 1000 - 500, Math.random() * 1000 - 500, Math.random() * 30 - 200, Math.random() * 2 - 1, Math.random() * 2 - 1, Math.random() * 2 - 1 @@ -21,6 +25,12 @@ upgrades = [ 'price': 1000, 'exec': 'doNothing', 'desc': 'Earlier-bought Sets are more powerful' + }, + { + 'name': 'Intersection', + 'price': 1000, + 'exec': 'intersectThings', + 'desc': 'Sets become easier to click' } ];