-
Notifications
You must be signed in to change notification settings - Fork 0
/
winStates.js
155 lines (118 loc) Β· 5.81 KB
/
winStates.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
trueEnding = false;
showEndings = false;
let ed1 = localStorage.getItem("endingOne");
let ed2 = localStorage.getItem("endingTwo");
let ed3 = localStorage.getItem("endingThree");
let ed4 = localStorage.getItem("endingFour");
let ed5 = localStorage.getItem("endingFive");
let ed6 = localStorage.getItem("endingSix");
let ed7 = localStorage.getItem("endingSeven");
let ed8 = localStorage.getItem("endingEight");
if (ed1 == "1") {
document.getElementById("win1").innerHTML = ('πͺ');
}
if (ed2 == "1") {
document.getElementById("win2").innerHTML = ('πͺ');
}
if (ed3 == "1") {
document.getElementById("win3").innerHTML = ('πͺ');
}
if (ed4 == "1") {
document.getElementById("win4").innerHTML = ('πͺ');
}
if (ed5 == "1") {
document.getElementById("win5").innerHTML = ('πͺ');
}
if (ed6 == "1") {
document.getElementById("win6").innerHTML = ('πͺ');
}
if (ed7 == "1") {
document.getElementById("win7").innerHTML = ('πͺ');
}
var NaNs = new Audio("items/NaN.mp3")
var newGameED = new Audio("items/endingJapanese5.mp3")
var clickerGodSFX = new Audio("items/yakuzaOnTheEdge.mp3")
var badEDSFX = new Audio("items/endingFireHorn.mp3")
if (ed1 == "1" || ed2 == "1" || ed3 == "1" || ed4 == "1" || ed5 == "1" || ed6 == "1" || ed7 == "1") {
showEndings = true;
}
if (ed1 == "1" && ed2 == "1" && ed3 == "1" && ed4 == "1" && ed5 == "1" && ed6 == "1" && ed7 == "1" && ed8 != "1"){
trueEnding = true;
document.getElementById("win1").innerHTML = ('β
');
document.getElementById("win2").innerHTML = ('β
');
document.getElementById("win3").innerHTML = ('β
');
document.getElementById("win4").innerHTML = ('β
');
document.getElementById("win5").innerHTML = ('β
');
document.getElementById("win6").innerHTML = ('β
');
document.getElementById("win7").innerHTML = ('β
');
$('#win8').delay(15000).show(1000);
}
else if (ed1 == "1" && ed2 == "1" && ed3 == "1" && ed4 == "1" && ed5 == "1" && ed6 == "1" && ed7 == "1" && ed8 == "1"){
trueEnding = true;
document.getElementById("win1").innerHTML = ('π');
document.getElementById("win2").innerHTML = ('π');
document.getElementById("win3").innerHTML = ('π');
document.getElementById("win4").innerHTML = ('π');
document.getElementById("win5").innerHTML = ('π');
document.getElementById("win6").innerHTML = ('π');
document.getElementById("win7").innerHTML = ('π');
document.getElementById("win8").innerHTML = ('π');
$('#win8').delay(2500).show(1000);
}
won = 0;
setInterval(() => {
timesDone = performance.now()
if (times == Infinity && won == 0 || times == NaN && won == 0) {
won = 1;
goodGame('NaN', 'v q r l w d o x w d u j q r f w v l a h j q l k w d k f x v g o x r z b k z', 'items/NaN.png', 'items/NaN.mp3')
}
if (times >= 1000000 && won == 0 && doomFacStacks <= 10 && doomFacsTier == 2) {
won = 1;
goodGame('True Ending...', 'You went through a lot and finally achieved it. Doom Factory is no more, you saved the humanity. Congratulations, True Cookie God. We will meet again, one day... 01110100 01101000 01100001 01101110 01101011 00100000 01111001 01101111 01110101 00100000 01100110 01101111 01110010 00100000 01100101 01110110 01100101 01110010 01111001 01110100 01101000 01101001 01101110 01100111', 'items/trueEnding.png', 'items/endingJapanese5.mp3')
localStorage.setItem("endingEight", "1");
}
// performance.now() 57600000
if (times >= 1000000 && won == 0 && onlyClicks == true && clickPower == 1 && timesDone >= 57600000) {
won = 1;
goodGame('Mirzas Tribute...', 'For ones, who insanity directs all paths...', 'items/clickerGod2.png', 'items/yakuzaOnTheEdge.mp3')
}
if (times >= 1000000 && won == 0 && onlyClicks == true && clickPower == 1) {
won = 1;
goodGame('WHAT... HAVE... YOU... DONE????', '1 Million Clicks... give me a screenshot atleast Ill put you on hall of fame', 'items/clickerGod1.png', 'items/yakuzaOnTheEdge.mp3')
}
if (times >= 1000000 && won == 0 && onlyClicks == true) {
won = 1;
goodGame('VERY strong fingers!!', 'You seriously done it? You serious? On god? Omg', 'items/jerkyFingers.png', 'items/yakuzaOnTheEdge.mp3')
localStorage.setItem("endingSix", "1");
}
if (times >= 1000000 && won == 0 && doomFacPeopleFed >= 50 && doomFacsTier == 2) {
won = 1;
goodGame('True Bad Ending', 'Was it worth it?.', 'items/trueBadEnding.png', 'items/endingFireHorn.mp3')
localStorage.setItem("endingSeven", "1");
}
if (times >= 1000000 && won == 0 && slavesAmount >= 30 && workerTier >= 2 && doomFacPeopleFed == 0) {
won = 1;
goodGame('Good Worker Contract', 'You made a prosperous company! All the people you hired will be happy to work on you forever!', 'items/goodEnding.png', 'items/cheers.mp3')
localStorage.setItem("endingThree", "1");
}
if (times >= 1000000 && won == 0 && doomFacPeopleFed >= 30) {
won = 1;
goodGame('Jeffrey Bezos', 'You got to the top... 1 Million Cookies... You also commited a lot of crimes, and the authorities know it, but they cant do anything about it.', 'items/jeffBezos.png', 'items/lowHum.mp3')
localStorage.setItem("endingFour", "1");
}
if (times >= 1000000 && won == 0) {
won = 1;
goodGame('1 Million Cookies', 'You did it... It took some time, and some cookie eaters... but... you are here! Congratulations!', 'items/1mil.png', 'items/cheers.mp3')
localStorage.setItem("endingOne", "1");
}
if (times <= -100000 && won == 0 && doomFacsTier == 2){
won = 1;
goodGame('The True Doomsday', 'You went too far. Way too far.', 'items/theDoomGod.png', 'items/endingLullaby.mp3')
localStorage.setItem("endingFive", "1");
}
if (times <= -100000 && won == 0){
won = 1;
goodGame('The Doomsday', 'Doom Factory got out of hand, and, you couldnt manage to handle it...', 'items/doomFac.png', 'items/humTrumpet.mp3')
localStorage.setItem("endingTwo", "1");
}
}, 1000);