Skip to content

Commit

Permalink
More title levels
Browse files Browse the repository at this point in the history
  • Loading branch information
f00d4tehg0dz committed Jan 30, 2022
1 parent 42e6780 commit 2362502
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

.history
Binary file modified Release/com.f00d4tehg0dz.cookieclicker.streamDeckPlugin
Binary file not shown.
47 changes: 46 additions & 1 deletion com.f00d4tehg0dz.cookieclicker.sdPlugin/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,15 @@ if ($SD) {
})));
}

// 5x
if (num >= 250) {
num += 5;
updateTitleFn(JSON.parse(JSON.stringify({
"number": num,
"title": "Mine",
})));
}

// 10x
if (num >= 500) {
num += 10;
Expand All @@ -147,6 +156,15 @@ if ($SD) {
})));
}

// 20x
if (num >= 750) {
num += 20;
updateTitleFn(JSON.parse(JSON.stringify({
"number": num,
"title": "Bank",
})));
}

// 30x
if (num >= 1000) {
num += 30;
Expand All @@ -156,12 +174,39 @@ if ($SD) {
})));
}

// 40x
if (num >= 1400) {
num += 40;
updateTitleFn(JSON.parse(JSON.stringify({
"number": num,
"title": "Plant",
})));
}

// 50x
if (num >= 2500) {
num += 50;
updateTitleFn(JSON.parse(JSON.stringify({
"number": num,
"title": "Shipment",
})));
}

// 100x
if (num >= 10000) {
num += 100;
updateTitleFn(JSON.parse(JSON.stringify({
"number": num,
"title": "Fractal",
})));
}

// 1000x
if (num >= 100000) {
num += 1000;
updateTitleFn(JSON.parse(JSON.stringify({
"number": num,
"title": "S. Plant",
"title": "Portal",
})));
}

Expand Down

0 comments on commit 2362502

Please sign in to comment.