add intersection upgrade
This commit is contained in:
parent
5df5ea8d6c
commit
3f0b0b8ccc
2 changed files with 11 additions and 0 deletions
docs/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;
|
||||
|
|
|
@ -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'
|
||||
}
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in a new issue