add unions

This commit is contained in:
biglyderv 2025-03-07 03:46:03 -05:00
parent ce6c859e9c
commit e832b8f630
Signed by: biglyderv
GPG key ID: 0E2EB0B4CD7397B5
3 changed files with 33 additions and 10 deletions

View file

@ -1,5 +1,9 @@
let exec = {};
exec.doNothing = 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
@ -11,6 +15,12 @@ upgrades = [
'price': 30,
'exec': 'addCube',
'desc': 'Clicks and waiting generate more nil'
},
{
'name': 'Union',
'price': 1000,
'exec': 'doNothing',
'desc': 'Earlier-bought Sets are more powerful'
}
];