-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharray.js
366 lines (357 loc) · 10.2 KB
/
array.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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
// Create Mining Rigs
const miningRigs = [
{
name: 'Zeus Miner',
miningSpeed: 50,
energyConsumption: 20,
cost: 10000,
breakdownProbability: 0.02,
repairCost: 800,
heatGeneration: 15,
resaleValue: 7000,
upgradeSlots: 4,
image: "assets/MiningRig/ZeusMiner.png"
},
{
name: 'Hera Excavator',
miningSpeed: 45,
energyConsumption: 18,
cost: 9000,
breakdownProbability: 0.018,
repairCost: 750,
heatGeneration: 14,
resaleValue: 6300,
upgradeSlots: 3,
image: "assets/MiningRig/HeraExcavator.png"
},
{
name: 'Poseidon Drill',
miningSpeed: 40,
energyConsumption: 16,
cost: 8000,
breakdownProbability: 0.016,
repairCost: 700,
heatGeneration: 13,
resaleValue: 5600,
upgradeSlots: 3,
image: "assets/MiningRig/PoseidonDrill.png"
},
{
name: 'Athena Processor',
miningSpeed: 35,
energyConsumption: 14,
cost: 7000,
breakdownProbability: 0.015,
repairCost: 650,
heatGeneration: 12,
resaleValue: 4900,
upgradeSlots: 2,
image: "assets/MiningRig/AthenaProcessor.png"
},
{
name: 'Ares Harvester',
miningSpeed: 30,
energyConsumption: 12,
cost: 6000,
breakdownProbability: 0.014,
repairCost: 600,
heatGeneration: 11,
resaleValue: 4200,
upgradeSlots: 2,
image: "assets/MiningRig/AresHarvester.png"
},
{
name: 'Apollo Rig',
miningSpeed: 25,
energyConsumption: 10,
cost: 5000,
breakdownProbability: 0.012,
repairCost: 550,
heatGeneration: 10,
resaleValue: 3500,
upgradeSlots: 1,
image: "assets/MiningRig/ApolloRig.png"
},
{
name: 'Artemis Extractor',
miningSpeed: 20,
energyConsumption: 8,
cost: 4000,
breakdownProbability: 0.01,
repairCost: 500,
heatGeneration: 9,
resaleValue: 2800,
upgradeSlots: 1,
image: "assets/MiningRig/ArtemisExtractor.png"
},
{
name: 'Hermes Miner',
miningSpeed: 15,
energyConsumption: 6,
cost: 3000,
breakdownProbability: 0.008,
repairCost: 450,
heatGeneration: 8,
resaleValue: 2100,
upgradeSlots: 0,
image: "assets/MiningRig/HermesMiner.png"
},
{
name: 'Hephaestus Furnace',
miningSpeed: 10,
energyConsumption: 4,
cost: 2000,
breakdownProbability: 0.006,
repairCost: 400,
heatGeneration: 7,
resaleValue: 1400,
upgradeSlots: 0,
image: "assets/MiningRig/HephaestusFurnace.png"
},
{
name: 'Demeter Digger',
miningSpeed: 5,
energyConsumption: 2,
cost: 1000,
breakdownProbability: 0.004,
repairCost: 300,
heatGeneration: 6,
resaleValue: 700,
upgradeSlots: 0,
image: "assets/MiningRig/DemeterDigger.png"
}
];
// Energy Management
const energyUnits = [
{
name: "Hestia's Hearth",
powerOutput: 100,
cost: 1000,
description: "Harness the divine hearth's energy for basic power needs."
},
{
name: "Helios' Radiance",
powerOutput: 200,
cost: 2000,
description: "Utilize the sun god's brilliance for a consistent power supply."
},
{
name: "Hermes' Dynamo",
powerOutput: 300,
cost: 3000,
description: "Leverage the messenger god's speed for dynamic power generation."
},
{
name: "Demeter's Bounty",
powerOutput: 400,
cost: 4000,
description: "Use the harvest goddess's riches for abundant power production."
},
{
name: "Poseidon's Surge",
powerOutput: 500,
cost: 5000,
description: "Employ the sea god's tidal force for a high-energy power boost."
},
{
name: "Aeolus' Gale",
powerOutput: 600,
cost: 6000,
description: "Use the wind lord's gusts for efficient wind power generation."
},
{
name: "Hephaestus' Forge",
powerOutput: 700,
cost: 7000,
description: "Harness the blacksmith god's fiery forge for high-temperature power production."
},
{
name: "Apollo's Beam",
powerOutput: 800,
cost: 8000,
description: "Utilize the sun god's piercing light for powerful solar energy generation."
},
{
name: "Zeus' Bolt",
powerOutput: 900,
cost: 9000,
description: "Employ the king god's thunderbolt for electrifying power supply."
},
{
name: "Gaia's Pulse",
powerOutput: 1000,
cost: 10000,
description: "Leverage the earth mother's life force for sustainable geothermal energy."
}
];
// Crypto
const cryptocurrencies = [
{ name: 'Bitcoin', symbol: 'BTC', value: 29041.99, difficulty: 10 },
{ name: 'Ethereum', symbol: 'ETH', value: 1833.75, difficulty: 8 },
{ name: 'Litecoin', symbol: 'LTC', value: 82.69, difficulty: 6 },
{ name: 'Bitcoin Cash', symbol: 'BCH', value: 225.1, difficulty: 7 },
{ name: 'Monero', symbol: 'XMR', value: 75.85, difficulty: 5 },
{ name: 'Dash', symbol: 'DASH', value: 31.13, difficulty: 4 },
{ name: 'Zcash', symbol: 'ZEC', value: 28.40, difficulty: 3 },
{ name: 'Ethereum Classic', symbol: 'ETC', value: 17.90, difficulty: 2 },
{ name: 'NEO', symbol: 'NEO', value: 8.39, difficulty: 1 }
];
// Player Dashboard
let playerStats = {
cash: 50000, // Starting balance
btc: 0,
eth: 0,
ltc: 0,
bch: 0,
xmr: 0,
dash: 0,
zec: 0,
etc: 0,
neo: 0
};
// Colling Management
const coolingUnits = [
{
name: "Boreas' Breath",
coolingPower: 10,
energyConsumption: 2,
cost: 1000,
description: "Harness the north wind's chilly gusts for basic cooling."
},
{
name: "Poseidon's Wave",
coolingPower: 20,
energyConsumption: 4,
cost: 2000,
description: "Utilize the refreshing power of sea waves for better cooling."
},
{
name: "Eurus' Zephyr",
coolingPower: 30,
energyConsumption: 6,
cost: 3000,
description: "Draw on the eastern wind's gentle breezes for efficient cooling."
},
{
name: "Hephaestus' Aether",
coolingPower: 40,
energyConsumption: 8,
cost: 4000,
description: "Use the pure upper air that the gods breathe for high-level cooling."
},
{
name: "Helios' Eclipse",
coolingPower: 50,
energyConsumption: 10,
cost: 5000,
description: "Employ the shadow of the sun god for powerful cooling."
},
{
name: "Notus' Mist",
coolingPower: 60,
energyConsumption: 12,
cost: 6000,
description: "Utilize the southern wind's foggy curtain for superior cooling."
},
{
name: "Hades' Chill",
coolingPower: 70,
energyConsumption: 14,
cost: 7000,
description: "Exploit the underworld's icy cold for supreme cooling."
},
{
name: "Demeter's Frost",
coolingPower: 80,
energyConsumption: 16,
cost: 8000,
description: "Leverage the goddess of harvest's wintry touch for efficient cooling."
},
{
name: "Artemis' Moonlight",
coolingPower: 90,
energyConsumption: 18,
cost: 9000,
description: "Use the cool light of the moon for effective cooling."
},
{
name: "Kronos' Void",
coolingPower: 100,
energyConsumption: 20,
cost: 10000,
description: "Utilize the void of the titan of time for ultimate cooling."
}
];
// Upgrades
const rigUpgrades = [
{
name: "Aegis Shield",
effect: "Reduces breakdown probability by 10%",
energyConsumption: 1,
cost: 1000,
description: "The divine shield reduces wear and tear on your rig."
},
{
name: "Hermes' Winged Sandals",
effect: "Increases mining speed by 10%",
energyConsumption: 2,
cost: 2000,
description: "Fly through computations with the speed of Hermes."
},
{
name: "Aphrodite's Charm",
effect: "Increases resale value by 10%",
energyConsumption: 3,
cost: 3000,
description: "Make your rigs irresistible to buyers with Aphrodite's charm."
},
{
name: "Dionysus' Vine",
effect: "Reduces energy consumption by 10%",
energyConsumption: 4,
cost: 4000,
description: "Tap into the god of wine's ability to relax and reduce power drain."
},
{
name: "Athena's Owl",
effect: "Increases efficiency by 10%",
energyConsumption: 5,
cost: 5000,
description: "Boost your rig's wisdom and efficiency with Athena's owl."
},
{
name: "Apollo's Lyre",
effect: "Reduces heat generation by 10%",
energyConsumption: 6,
cost: 6000,
description: "Keep your rigs cool with the soothing tunes of Apollo's lyre."
},
{
name: "Hephaestus' Hammer",
effect: "Reduces repair costs by 10%",
energyConsumption: 7,
cost: 7000,
description: "Make repairs easier and cheaper with the blacksmith god's hammer."
},
{
name: "Poseidon's Trident",
effect: "Increases rig capacity by 10%",
energyConsumption: 8,
cost: 8000,
description: "Expand your rig's capacity with the sea god's trident."
},
{
name: "Hades' Helm",
effect: "Makes breakdowns less likely during peak hours",
energyConsumption: 9,
cost: 9000,
description: "Keep your rig safe during peak hours with the invisibility helm of Hades."
},
{
name: "Zeus' Thunderbolt",
effect: "Increases mining speed, efficiency, and capacity by 10%",
energyConsumption: 10,
cost: 10000,
description: "Supercharge your rig with the king god's thunderbolt."
}
];