-
Notifications
You must be signed in to change notification settings - Fork 31
/
index.html
464 lines (422 loc) · 17.2 KB
/
index.html
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
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Reactor Knockoff</title>
<script>
if ( window.location.hostname.indexOf('.github.io') !== -1 && window.location.protocol !== 'https:' ) {
window.location.href = 'https:' + window.location.href.substring(window.location.protocol.length);
}
</script>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/app.css">
<link rel="stylesheet" href="css/app.perf.css">
<link rel="stylesheet" href="css/cms.css">
</head>
<body>
<div id="wrapper">
<main id="main" class="reactor_showing">
<!-- ---- Secondary ---- -->
<div id="secondary" class="panel_holder">
<!-- -- Stats -- -->
<section id="stats_section" class="panel">
<h2 class="stats_section_heading heading">Stats</h2>
<!-- Heat -->
<section id="heat">
<h3 class="heading"><span class="current">Current</span> Heat</h3>
<p id="heat_indicator">
<span id="heat_text">
<span id="heat_wrapper">
<span id="current_heat">0</span>/<span id="max_heat">0</span>
<span id="heat_per_tick_wrapper">(<span id="heat_per_tick">0</span> last tick)</span>
</span>
</span>
<span id="heat_percentage"></span>
</p>
<button id="reduce_heat">
<span id="manual_heat_reduce"></span>
(<span id="auto_heat_reduce"></span>/tick)
</button>
</section>
<!-- Power -->
<div id="power_section">
<section id="power">
<h3 class="heading"><span class="current">Current</span> Power</h3>
<p id="power_indicator">
<span id="power_text">
<span id="current_power">0</span>/<span id="max_power">0</span>
</span>
<span id="power_per_tick_wrapper">(<span id="power_per_tick">0</span> last tick)</span>
<span id="power_percentage"></span>
</p>
</section>
<button id="sell">Sell</button>
</div>
<!-- Currency -->
<p id="currency">
<span id="money_wrapper">
$<span id="money">0</span>
<span id="money_per_tick_wrapper">(<span id="money_per_tick">0</span> last tick)</span>
</span>
<span id="exotic_particles_wrapper">
(<span id="current_exotic_particles">0</span>/<span id="exotic_particles">0</span> EP, <span id="time_flux">0</span> TF)
</span>
</p>
<!-- button id="scrounge">Scrounge for Cash</button -->
<menu id="more_stats">
<button id="more_stats_toggle"></button>
</menu>
</section>
<!-- -- Parts -- -->
<section id="parts_section" class="panel">
<h2 class="heading">Parts</h2>
<div id="all_parts">
<!-- nav id="parts_nav">
<a href="#top" id="parts_nav_top">▴</a>
<a href="#bottom" id="parts_nav_bottom">▾ </a>
</nav -->
<menu id="parts" class="page subpanel showing">
<!-- div id="top"></div -->
<menu id="power">
<menu id="cells" class="cells"></menu>
<menu id="reflectors"></menu>
<menu id="capacitors"></menu>
</menu>
<menu id="cooling">
<menu id="vents"></menu>
<menu id="heat_exchangers"></menu>
<menu id="heat_inlets"></menu>
<menu id="heat_outlets"></menu>
<menu id="coolant_cells"></menu>
<menu id="reactor_platings"></menu>
<menu id="particle_accelerators"></menu>
</menu>
<!-- div id="bottom"></div -->
</menu>
</div>
</section>
</div>
<!-- ---- Primary ---- -->
<div id="primary" class="panel_holder">
<!-- -- Top -- -->
<div id="tooltip_nav" class="panel">
<!-- Nav -->
<menu id="nav">
<div class="flex_nav">
<menu>
<button id="options" class="nav" data-section="reactor_upgrades" data-page="options_section">Options</button>
<button id="show_help" class="nav" data-section="reactor_upgrades" data-page="help_section">Help</button>
<button id="show_about" class="nav" data-section="reactor_upgrades" data-page="about_section">About</button>
</menu>
<menu>
<button id="auto_sell_toggle"></button>
<button id="auto_buy_toggle"></button>
</menu>
</div>
<div class="flex_nav">
<menu>
<button id="time_flux_toggle"></button>
</menu>
<menu>
<button id="heat_control_toggle"></button>
</menu>
</div>
<div class="flex_nav">
<menu>
<button id="show_reactor" class="nav" data-section="reactor_upgrades" data-page="reactor_section">Reactor</button>
<button id="show_upgrades" class="nav" data-section="reactor_upgrades" data-page="upgrades_section">Upgrades</button>
<button id="show_experiments" class="nav" data-section="reactor_upgrades" data-page="experimental_upgrades_section">Experiments</button>
</menu>
<menu>
<button id="pause_toggle"></button>
</menu>
</div>
</menu>
<!-- -- Tooltip -- -->
<section id="tooltip">
<div id="tooltip_data" class="subpanel">
<p id="tooltip_cost" title="Cost"></p>
<p id="tooltip_heat_per_wrapper" title="Heat per tick">
Heat: <span id="tooltip_heat_per"></span>
</p>
<p id="tooltip_power_per_wrapper" title="Power per tick">
Power: <span id="tooltip_power_per"></span>
</p>
<p id="tooltip_ticks_wrapper" title="Ticks remaining">
Durability: <span id="tooltip_ticks"></span>/<span id="tooltip_max_ticks"></span>
</p>
<p id="tooltip_heat_wrapper" title="Heat contained">
Heat: <span id="tooltip_heat"></span>/<span id="tooltip_max_heat"></span>
</p>
<p id="tooltip_sells_wrapper">
Sells for: <span id="tooltip_sells"></span>
</p>
<p id="tooltip_chance_wrapper" title="Sells for">
EP chance: <span id="tooltip_chance"></span>% per tick (<span id="tooltip_chance_percent_of_total"></span>% of max)
</p>
</div>
<div id="tooltip_text" class="subpanel">
<div id="tooltip_info">
<h2 class="headline" id="tooltip_name" title="Name"></h2>
<p id="tooltip_description" title="Description" class="explanitory"></p>
</div>
</div>
</section>
</div>
<!-- -- Middle -- -->
<section id="objectives_section" class="panel">
<h2 id="objectives_header">Objective</h2>
<div id="objectives_wrapper" class="subpanel">
<div id="objectives_content">
<p id="objective_title"></p>
<p id="objective_reward"></p>
</div>
</div>
</section>
<!-- -- Bottom -- -->
<div id="reactor_upgrades" class="panel">
<!-- Reactor -->
<section id="reactor_section" class="page showing">
<header id="reactor_header">
<h2 class="heading">Reactor</h2>
<div id="reactor_stats">
<span id="stats_vent" class="stat" title="Estimated total heat venting per tick">0</span>
<span id="stats_inlet" class="stat" title="Total potential heat inletting per tick">0</span>
<span id="stats_outlet" class="stat" title="Total potential heat outletting per tick">0</span>
<span id="stats_power" class="stat" title="Estimated power per tick">0</span>
<span id="stats_heat" class="stat" title="Estimated heat per tick">0</span>
<span id="stats_cash" class="stat" title="Estimated autosell cash per tick">0</span>
</div>
</header>
<!-- the javascript code should prevent the context menu from showing but
someone reported a issue on it https://github.com/asl97/reactor-knockoff/pull/1 -->
<div id="reactor_wrapper" oncontextmenu="return false;">
<div id="tile_wrapper" class="subpanel">
<div id="reactor"></div>
</div>
<div id="reactor_background"></div>
</div>
</section>
<!-- Help -->
<section id="help_section" class="page">
<h2 class="heading">Help</h2>
<div id="help" class="subpanel explanitory cms">
<h4>Basic Overview</h4>
<p>Cells = power and heat</p>
<p>Power = money</p>
<p>Money = Bigger cells and more money</p>
<p>Lots of money = particle accelerators</p>
<p>Particle accelerators = exotic particles (EP)</p>
<p>EP = more upgrades and new toys for more power, heat and money!</p>
<p>TF = Time Flux = Offline time accumulated (speeds game up when enabled)</p>
<div class="has_spoiler">
<h4>Exotic Particle setup</h4>
<p>
To generate Exotic Particles you will need to put heat into a Particle Accelerator and immediately take it out.
To do this you can use either Heat Exchangers or Heat Inlets.
See below for an example:
</p>
<button class="show_spoiler">Show Spoilers</button>
<p class="spoiler"><img src="img/help/pa_spoiler.png" alt="Particle Accelerator setups"></p>
</div>
</div>
</section>
<!-- Options -->
<section id="options_section" class="page">
<h2 class="heading">Options</h2>
<div id="options" class="subpanel explanitory cms">
<p><button id="enable_google_drive_save">Enable Google Drive Online Save</button></p>
<p><button id="enable_local_save">Enable Local Save Only</button></p>
<div>
<p><button id="trigger_save">Save game</button>
<button id="export_save">Export save</button>
<button id="download_save">Download save</button>
<button id="import_save">Import save</button>
<button id="reset_game">Reset game</button></p>
<dialog id="Import_Export_dialog" style="padding: 0; border: none;">
<div class="panel">
<form method="dialog" class="subpanel">
<menu style="float: right">
<button id="Import_Export_close_button" type="reset">Cancel</button>
<button id="import_button" type="submit">Import</button>
</menu>
<section>
<textarea id="txtImportExport" rows="10" cols="75"></textarea>
</section>
</form>
</div>
</dialog>
</div>
<div>
<p><button id="speed_hack">Speed Hack</button>
<button id="offline_tick">Offline Tick</button>
</p>
</div>
</div>
</section>
<!-- About -->
<section id="about_section" class="page">
<h2 class="heading">About</h2>
<div id="about" class="subpanel explanitory cms">
<p>Based on <a href="http://www.kongregate.com/games/Cael/reactor-incremental" target="_blank">Reactor Incremental</a>.</p>
<p>UI based on <a href="http://opengameart.org/content/sci-fi-user-interface-elements" target="_blank">Sci-fi User Interface Elements</a> by <a href="http://opengameart.org/users/buch" target="_blank">Buch</a>.</p>
<p></p>
<p><button class="nav" data-section="reactor_upgrades" data-page="patch_section">See Patch Notes</button></p>
</div>
</section>
<!-- Patch Notes -->
<section id="patch_section" class="page">
<h2 class="heading">Patch Notes</h2>
<div id="about" class="subpanel explanitory cms">
<button id="show_reactor" class="nav" data-section="reactor_upgrades" data-page="reactor_section">Back to Reactor</button>
<section class="patch">
<h3>v1.3.2 - June 14th, 2018</h3>
<ul>
<li>Improvement:</li>
<ul>
<li>Upgrade tick catchup to offline ticks!</li>
</ul>
<ul>
</section>
<section class="patch">
<h3>v1.3.1 - June 12th, 2018</h3>
<ul>
<li>New Features:</li>
<ul>
<li>Save data exporting and importing</li>
<li>Additional hotkeys/macro:</li>
<ul>
<li>Hold keys in bracket and click to use the macro</li>
<li>Row (ctrl)</li>
<li>Column (alt)</li>
<li>Spacing options (number)</li>
<li>Don't filter by part (shift)</li>
<li>Checkered fill (ctrl+alt+shift)</li>
</ul>
<li>A reset button!</li>
<li>New upgrade which prevents outlets from outputting more than what the vent can handle</li>
<li>Speed hack toggle, throw more stuff into their own layer and thus reduce paint time (at the cost of memory)</li>
<li>Tick catchup</li>
</ul>
<li>Improvement:</li>
<ul>
<li>Replacing now works with same category parts, eg: downgrading, switching cell type</li>
<li>Replacing tiles is now faster</li>
<li>Less cpu usage when not on reactor tile panel</li>
<li>Shift/Double click now works on empty tiles</li>
<li>Greatly improve performance</li>
<ul>
<li>Faster repaint time by layering frequently updated ui (Improve fps/lag)</li>
<li>Faster tick timing (faster loading after offline)</li>
<li>Less lag spike for UI, tooltip</li>
<li>Percentage bar and overheating redness are now updated in steps (reduce repainting)</li>
</ul>
<li>Tile queue now buys as many as possible per tick</li>
</ul>
<li>Bug fixes:</li>
<ul>
<li>Right click no longer buy stuff</li>
<li>Fixes Heat Control Operator adding heat</li>
<li>Left+right click triggering double click function and deleting tiles</li>
<li>Replacing tiles with another now reimburse the amount for the part</li>
<li>Fixes reflector ui load bug</li>
<li>Fixes heat outlet heat distribution bug with multi-tier setup</li>
<li>Fixes extreme plating adding to max power despite not being bought yet</li>
<li>Make sure background get updated when placing plating so it doesn't get stuck on red</li>
</ul>
</ul>
</section>
<section class="patch">
<h3>v1.2.0 - February 7th, 2015</h3>
<ul>
<li>Signific code changes that shouldn't (but may) affect gameplay</li>
<li>Added Objectives</li>
<li>Removed old Particle Accelerator upgrades</li>
<li>Added individual experimental Particle Accelerator upgrades</li>
</ul>
</section>
<section class="patch">
<h3>v1.1.0 - January 13th, 2016</h3>
<h4>Features:</h4>
<ul>
<li>Added patch notes</li>
<li>Styling fixes to "pages"</li>
</ul>
<h4>Bug Fixes:</h4>
<ul>
<li>Fixed an issue with game loop firing too often</li>
<li>Platings (and possibly other things) now give 100% of their cost back when sold</li>
<li>Fixed sell costs for some components</li>
<li>Reflectors now start with a base % greater than 0</li>
<li>Multiple Exotic Particles gained when over 100% chance</li>
<li>Fixed support for larger touch devices to allow for selling, etc</li>
</ul>
</section>
<button id="show_reactor" class="nav" data-section="reactor_upgrades" data-page="reactor_section">Back to Reactor</button>
</div>
</section>
<!-- Upgrades -->
<div id="all_upgrades">
<!-- regular -->
<section id="upgrades_section" class="page">
<h2 class="heading">Upgrades</h2>
<div id="upgrades" class="subpanel">
<div id="cell_upgrades">
<div id="cell_tick_upgrades">
</div>
<div id="cell_power_upgrades">
</div>
<div id="cell_perpetual_upgrades">
</div>
</div>
<div id="other_upgrades">
</div>
<div id="vent_upgrades">
</div>
<div id="exchanger_upgrades">
</div>
</div>
</section>
<!-- experimental -->
<section id="experimental_upgrades_section" class="page">
<h2 class="heading">Experimental Upgrades</h2>
<div id="experimental_upgrades" class="subpanel">
<div id="experimental_laboratory"></div>
<div id="experimental_boost"></div>
<div id="experimental_particle_accelerators"></div>
<div id="experimental_cells"></div>
<div id="experimental_cell_boost"></div>
<div id="experimental_parts"></div>
</div>
<div id="reboot_section" class="explanitory">
<button id="reboot">Reboot for <span id="reboot_exotic_particles">0</span> Exotic Particles (EP)</button>
<p>
Rebooting the reactor will remove all parts, regular upgrades and money. Only your current experimental upgrades and EP will stay with you.
</p>
</div>
<div id="refund_section" class="explanitory">
<button id="refund">Reboot and refund <span id="refund_exotic_particles">0</span> Exotic Particles</button>
<p>
All of the above applies, however this will undo all your experiment upgrades and refund all your Exotic Particles.
</p>
</div>
</section>
</div>
</div>
</div>
</main>
</div>
<script src="js/app.compat.js"></script>
<script src="js/app.globals.js"></script>
<script src="js/app.parts.js"></script>
<script src="js/app.upgrades.js"></script>
<script src="js/app.objectives.js"></script>
<script src="js/app.ui.js"></script>
<script src="js/app.upgrade.js"></script>
<script src="js/app.save.js"></script>
<script src="js/app.hotkeys.js"></script>
<script src="js/app.js"></script>
</body>
</html>