no comment

This commit is contained in:
moganda12 2024-12-10 23:49:15 +00:00
parent e1729a0c72
commit fc30a66eba
6 changed files with 82 additions and 14 deletions

View File

@ -1,2 +1,2 @@
g++-10 $1 -o $2 -O3 -std=c++20 -pthread -lgmp -lgmpxx -s
#./$2
g++ $1 -o $2 -O3 -std=c++20 -pthread -lgmp -lgmpxx -s
#./$2

57
save/gug.json Normal file
View File

@ -0,0 +1,57 @@
{
"achievements": null,
"buildings": {
"cursor": {
"count": "5"
},
"largeFAB": {
"count": "0"
},
"mediumFAB": {
"count": "0"
},
"moss": {
"count": "4"
},
"smallFAB": {
"count": "0"
}
},
"totalTransistors": {
"denominator": "4",
"numerator": "7053"
},
"transistorBalance": {
"denominator": "32000",
"numerator": "34008857"
},
"upgrades": {
"cheap lithography machines": {
"bought": false
},
"chippy": {
"bought": false
},
"denser chips": {
"bought": false
},
"endgame": {
"bought": false
},
"faster fingers": {
"bought": false
},
"integrated mouse": {
"bought": true
},
"moss walls": {
"bought": false
},
"mossier tech": {
"bought": false
},
"mossy mossy": {
"bought": false
}
}
}

View File

@ -1,4 +1,5 @@
{
"achievements": null,
"buildings": {
"cursor": {
"count": "1"
@ -7,22 +8,22 @@
"count": "0"
},
"mediumFAB": {
"count": "0"
"count": "1"
},
"moss": {
"count": "5"
"count": "23"
},
"smallFAB": {
"count": "0"
"count": "13"
}
},
"totalTransistors": {
"denominator": "160",
"numerator": "698821"
"numerator": "12504161"
},
"transistorBalance": {
"denominator": "1600",
"numerator": "5885429"
"denominator": "167772160000000000000000000000",
"numerator": "221320933749281854631612254981359"
},
"upgrades": {
"cheap lithography machines": {
@ -38,19 +39,19 @@
"bought": false
},
"faster fingers": {
"bought": false
"bought": true
},
"integrated mouse": {
"bought": false
"bought": true
},
"moss walls": {
"bought": false
"bought": true
},
"mossier tech": {
"bought": false
},
"mossy mossy": {
"bought": false
"bought": true
}
}
}

View File

@ -1,5 +1,6 @@
{
"saves": [
"main"
"main",
"gug"
]
}

View File

@ -396,9 +396,15 @@ void addTrigger(Trigger trigger) {
}
void testTriggers(std::vector<str> args) {
for(Trigger trigger : triggers) {
for(int i = 0; i < triggers.size(); i++) {
Trigger trigger = triggers[i];
if(trigger.condition(args)) {
trigger.result(args);
if(trigger.selfdelete) {
triggers.erase(triggers.begin() + i);
}
}
}
}

View File

@ -19,6 +19,8 @@
- [x] add save renaming and copy
}
[ ] acheivements {
- [x] add interface functions
@ -27,3 +29,4 @@
- [ ] add the rest
- [ ] make acheivements save
}