forked from BetweenWalls/portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
642 lines (590 loc) · 42.7 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
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
<!--
"Portal" Planner for Diablo II
Copyright © 2020 BetweenWalls
This program is available at https://betweenwalls.github.io/portal/
More information (source, copyright, contact, etc) is available at https://github.com/BetweenWalls/portal
If you're reading this, you're probably interested in my code. It has become rather messy without having any need to share it with others. I would be happy to see that change, so drop me a line sometime. (BetweenWalls on reddit, BetweenWalls#2390 on discord)
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Portal (Planner for Diablo II)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="./data/style.css">
<link rel="shortcut icon" type="image/x-icon" href="./images/portal.ico">
<script type="text/javascript" src="./data/monsters.js"></script>
<script type="text/javascript" src="./data/items.js"></script>
<script type="text/javascript" src="./data/item_metadata.js"></script>
<script type="text/javascript" src="./data/basic_variables.js"></script>
<script type="text/javascript" src="./data/skills/PoD/amazon.js"></script>
<script type="text/javascript" src="./data/skills/PoD/assassin.js"></script>
<script type="text/javascript" src="./data/skills/PoD/barbarian.js"></script>
<script type="text/javascript" src="./data/skills/PoD/druid.js"></script>
<script type="text/javascript" src="./data/skills/PoD/necromancer.js"></script>
<script type="text/javascript" src="./data/skills/PoD/paladin.js"></script>
<script type="text/javascript" src="./data/skills/PoD/sorceress.js"></script>
<script type="text/javascript" src="./data/skills/PoD/universal_skills.js"></script>
<script type="text/javascript" src="./data/skills/PD2/amazon.js"></script>
<script type="text/javascript" src="./data/skills/PD2/assassin.js"></script>
<script type="text/javascript" src="./data/skills/PD2/barbarian.js"></script>
<script type="text/javascript" src="./data/skills/PD2/druid.js"></script>
<script type="text/javascript" src="./data/skills/PD2/necromancer.js"></script>
<script type="text/javascript" src="./data/skills/PD2/paladin.js"></script>
<script type="text/javascript" src="./data/skills/PD2/sorceress.js"></script>
<script type="text/javascript" src="./data/skills/PD2/universal_skills.js"></script>
<script type="text/javascript" src="./data/skills/vanilla/amazon.js"></script>
<script type="text/javascript" src="./data/skills/vanilla/assassin.js"></script>
<script type="text/javascript" src="./data/skills/vanilla/barbarian.js"></script>
<script type="text/javascript" src="./data/skills/vanilla/druid.js"></script>
<script type="text/javascript" src="./data/skills/vanilla/necromancer.js"></script>
<script type="text/javascript" src="./data/skills/vanilla/paladin.js"></script>
<script type="text/javascript" src="./data/skills/vanilla/sorceress.js"></script>
<script type="text/javascript" src="./data/skills/vanilla/universal_skills.js"></script>
<script type="text/javascript" src="./data/functions.js"></script>
</head>
<body class="background" onload="initial_load()">
<div id="main">
<div class="navbar">
<img src="./images/portal.ico" class="portal-logo">
<div class="nav-dropdown">
<button class="nav-dropbtn">File</button>
<div class="nav-dropdown-content">
<div class="nav-dropdown-content-item" onclick="saveTextAsFile()"><div class="nav-text">
<label> Save </label>
</div></div>
<div class="nav-dropdown-content-item"><div class="nav-text">
<label> Load <input type="file" id="fileToLoad" onchange="loadFileAsText()"></input></label>
</div></div>
</div>
</div>
<div class="nav-dropdown">
<button class="nav-dropbtn">Version</button>
<div class="nav-dropdown-content">
<div class="nav-dropdown-content-item"><div class="nav-option">
<label for="version" onclick="return changeVersion(1,'');"><input id="version1" type="radio" name="version"> Vanilla </label>
</div></div>
<div class="nav-dropdown-content-item"><div class="nav-option">
<label for="version" onclick="return changeVersion(2,'');"><input id="version2" type="radio" name="version" checked> Path of Diablo </label>
</div></div>
<div class="nav-dropdown-content-item"><div class="nav-option">
<label for="version" onclick="return changeVersion(3,'');"><input id="version3" type="radio" name="version"> Project D2 </label>
</div></div>
</div>
</div>
<div class="nav-dropdown">
<button class="nav-dropbtn">Preferences</button>
<div class="nav-dropdown-content">
<div class="nav-dropdown-content-item"><div class="nav-option">
<input id="parameters" type="checkbox" name="parameters" value="0" onclick="return toggleParameters(this);">
<label for="parameters"> Shareable URL </label>
</div></div>
<div class="nav-dropdown-content-item"><div class="nav-option">
<input id="coupling" type="checkbox" name="coupling" value="1" onclick="return toggleCoupling(this);" checked>
<label for="coupling"> Skill-Level Coupling </label>
</div></div>
<div class="nav-dropdown-content-item" id="nav_autocast"><div class="nav-option">
<input id="autocast" type="checkbox" name="autocast" value="1" onclick="return toggleAutocast(this);" checked>
<label for="autocast"> New Effects Begin Enabled </label>
</div></div>
</div>
</div>
<div class="nav-dropdown">
<button class="nav-dropbtn">Character</button>
<div class="nav-dropdown-content">
<div class="nav-dropdown-content-item" id="nav_difficulty"><div class="nav-difficulty"> Difficulty: <br>
<input id="difficulty1" type="radio" name="difficulty" onclick="return changeDifficulty(1);">
<label for="difficulty">Normal</label>
<input id="difficulty2" type="radio" name="difficulty" onclick="return changeDifficulty(2);">
<label for="difficulty">Nightmare</label>
<input id="difficulty3" type="radio" name="difficulty" onclick="return changeDifficulty(3);" checked>
<label for="difficulty">Hell </label>
</div></div>
<div class="nav-dropdown-content-item"><div class="nav-option">
<input id="quests" type="checkbox" name="quests" onclick="return toggleQuests(this);">
<label for="quests"> Quests Completed </label>
</div></div>
<div class="nav-dropdown-content-item" id="nav_running"><div class="nav-option">
<input id="running" type="checkbox" name="running" onclick="return toggleRunning(this);">
<label for="running"> Running </label>
</div></div>
</div>
</div>
<!-- filled via loadMonsters()
<div class="nav-dropdown">
<button class="nav-dropbtn">Enemy</button>
<div class="nav-dropdown-content" id="monsters">
</div>
</div>
-->
<div class="nav-dropdown">
<button class="nav-dropbtn" style="cursor:pointer;" onClick="location.href='https://github.com/BetweenWalls/portal#portal'"><a href="https://github.com/BetweenWalls/portal#portal">Info</a></button>
</div>
</div>
<div class="inventory_container">
<div class="hover" id="tooltip_inventory">
<a id="item_name" class="tooltip_item"></a>
<a id="item_info" class="tooltip_item"></a>
<a id="item_corruption" class="tooltip_item"></a>
<a id="item_affixes" class="tooltip_item"></a>
<a id="item_set_affixes" class="tooltip_item"></a>
<a id="item_socketed_affixes" class="tooltip_item"></a>
<a id="item_group_affixes" class="tooltip_item"></a>
</div>
</div>
<div id="full_interface" class="no_selection" oncontextmenu="return false">
<div id="side"></div>
<div id="interface">
<div class="effect_container">
<div class="hover" id="tooltip_effect">
<a id="effect_name" class="tooltip_item"></a>
<a id="effect_info" class="tooltip_item"></a>
<a id="effect_affixes" class="tooltip_item"></a>
</div>
</div>
<div id="gui" class="no_selection" oncontextmenu="return false">
<!-- /GUI Stats -->
<div id="gui_stats">
<img usemap="#statmap" src="./images/statbar.png">
<map id="statmap" name="statmap">
<area coords="127,107,163,143" id="btn_strength" onclick="addStat(event,this.id)" oncontextmenu="removeStat(event,this.id)">
<area coords="127,169,163,203" id="btn_dexterity" onclick="addStat(event,this.id)" oncontextmenu="removeStat(event,this.id)">
<area coords="127,231,163,267" id="btn_vitality" onclick="addStat(event,this.id)" oncontextmenu="removeStat(event,this.id)">
<area coords="127,293,163,329" id="btn_energy" onclick="addStat(event,this.id)" oncontextmenu="removeStat(event,this.id)">
<area coords="14,15,61,52" id="btn_level" onclick="changeLevel(event,1)" oncontextmenu="changeLevel(event,-1)">
</map>
<p class="point" id="level" onclick="changeLevel(event,1)" oncontextmenu="changeLevel(event,-1)"></p>
<p class="text" id="class_name"></p>
<p class="point" id="remainingskills"></p>
<p class="point" id="remainingstats"></p>
<p class="point stat-left" id="strength" onmouseover="hoverStatOn(this.id)" onmouseout="hoverStatOff(this.id)"></p>
<p class="point stat-left" id="dexterity" onmouseover="hoverStatOn(this.id)" onmouseout="hoverStatOff(this.id)"></p>
<p class="point stat-left" id="vitality" onmouseover="hoverStatOn(this.id)" onmouseout="hoverStatOff(this.id)"></p>
<p class="point stat-left" id="energy" onmouseover="hoverStatOn(this.id)" onmouseout="hoverStatOff(this.id)"></p>
<img id="hide_skillpoints" class="hidden_item" src="./images/statbar_hidden_skills.png">
<img id="hide_statpoints" class="hidden_item" src="./images/statbar_hidden_stats.png">
<img id="hide_stats" class="hidden_item" src="./images/statbar_hidden_buttons.png">
<!-- class selection -->
<select class="dropdown-character" id="dropdown_class" onChange="reset(this.value)">
<option class="gray" disabled selected>Choose Class</option>
<option>Amazon</option>
<option>Assassin</option>
<option>Barbarian</option>
<option>Druid</option>
<option>Necromancer</option>
<option>Paladin</option>
<option>Sorceress</option></select>
</div> <!-- /GUI Stats -->
<!-- GUI Skills -->
<div id="gui_skills">
<img usemap="#skillmap" id="skill_tree" src="">
<map id="skillmap" name="skillmap">
<!-- skill hover areas -->
<area coords="14,16,62,64" id="s111"><area coords="83,16,131,64" id="s112"><area coords="152,16,200,64" id="s113">
<area coords="14,84,62,132" id="s121"><area coords="83,84,131,132" id="s122"><area coords="152,84,200,132" id="s123">
<area coords="14,152,62,200" id="s131"><area coords="83,152,131,200" id="s132"><area coords="152,152,200,200" id="s133">
<area coords="14,220,62,268" id="s141"><area coords="83,220,131,268" id="s142"><area coords="152,220,200,268" id="s143">
<area coords="14,289,62,337" id="s151"><area coords="83,289,131,337" id="s152"><area coords="152,289,200,337" id="s153">
<area coords="14,357,62,405" id="s161"><area coords="83,357,131,405" id="s162"><area coords="152,357,200,405" id="s163">
<area coords="245,16,293,62" id="s211"><area coords="314,16,362,62" id="s212"><area coords="383,16,434,62" id="s213">
<area coords="245,84,293,132" id="s221"><area coords="314,84,362,132" id="s222"><area coords="383,84,434,132" id="s223">
<area coords="245,152,293,200" id="s231"><area coords="314,152,362,200" id="s232"><area coords="383,152,434,200" id="s233">
<area coords="245,220,293,268" id="s241"><area coords="314,220,362,268" id="s242"><area coords="383,220,434,268" id="s243">
<area coords="245,289,293,337" id="s251"><area coords="314,289,362,337" id="s252"><area coords="383,289,434,337" id="s253">
<area coords="245,357,293,405" id="s261"><area coords="314,357,362,405" id="s262"><area coords="383,357,434,405" id="s263">
<area coords="476,16,524,62" id="s311"><area coords="545,16,593,62" id="s312"><area coords="614,16,662,62" id="s313">
<area coords="476,84,524,132" id="s321"><area coords="545,84,593,132" id="s322"><area coords="614,84,662,132" id="s323">
<area coords="476,152,524,200" id="s331"><area coords="545,152,593,200" id="s332"><area coords="614,152,662,200" id="s333">
<area coords="476,220,524,268" id="s341"><area coords="545,220,593,268" id="s342"><area coords="614,220,662,268" id="s343">
<area coords="476,289,524,337" id="s351"><area coords="545,289,593,337" id="s352"><area coords="614,289,662,337" id="s353">
<area coords="476,357,524,405" id="s361"><area coords="545,357,593,405" id="s362"><area coords="614,357,662,405" id="s363">
</map>
<!-- Skill Points -->
<p class="P Pa1 Py1" id="p111"></p><p class="P Pa2 Py1" id="p112"></p><p class="P Pa3 Py1" id="p113"></p>
<p class="P Pa1 Py2" id="p121"></p><p class="P Pa2 Py2" id="p122"></p><p class="P Pa3 Py2" id="p123"></p>
<p class="P Pa1 Py3" id="p131"></p><p class="P Pa2 Py3" id="p132"></p><p class="P Pa3 Py3" id="p133"></p>
<p class="P Pa1 Py4" id="p141"></p><p class="P Pa2 Py4" id="p142"></p><p class="P Pa3 Py4" id="p143"></p>
<p class="P Pa1 Py5" id="p151"></p><p class="P Pa2 Py5" id="p152"></p><p class="P Pa3 Py5" id="p153"></p>
<p class="P Pa1 Py6" id="p161"></p><p class="P Pa2 Py6" id="p162"></p><p class="P Pa3 Py6" id="p163"></p>
<p class="P Pb1 Py1" id="p211"></p><p class="P Pb2 Py1" id="p212"></p><p class="P Pb3 Py1" id="p213"></p>
<p class="P Pb1 Py2" id="p221"></p><p class="P Pb2 Py2" id="p222"></p><p class="P Pb3 Py2" id="p223"></p>
<p class="P Pb1 Py3" id="p231"></p><p class="P Pb2 Py3" id="p232"></p><p class="P Pb3 Py3" id="p233"></p>
<p class="P Pb1 Py4" id="p241"></p><p class="P Pb2 Py4" id="p242"></p><p class="P Pb3 Py4" id="p243"></p>
<p class="P Pb1 Py5" id="p251"></p><p class="P Pb2 Py5" id="p252"></p><p class="P Pb3 Py5" id="p253"></p>
<p class="P Pb1 Py6" id="p261"></p><p class="P Pb2 Py6" id="p262"></p><p class="P Pb3 Py6" id="p263"></p>
<p class="P Pc1 Py1" id="p311"></p><p class="P Pc2 Py1" id="p312"></p><p class="P Pc3 Py1" id="p313"></p>
<p class="P Pc1 Py2" id="p321"></p><p class="P Pc2 Py2" id="p322"></p><p class="P Pc3 Py2" id="p323"></p>
<p class="P Pc1 Py3" id="p331"></p><p class="P Pc2 Py3" id="p332"></p><p class="P Pc3 Py3" id="p333"></p>
<p class="P Pc1 Py4" id="p341"></p><p class="P Pc2 Py4" id="p342"></p><p class="P Pc3 Py4" id="p343"></p>
<p class="P Pc1 Py5" id="p351"></p><p class="P Pc2 Py5" id="p352"></p><p class="P Pc3 Py5" id="p353"></p>
<p class="P Pc1 Py6" id="p361"></p><p class="P Pc2 Py6" id="p362"></p><p class="P Pc3 Py6" id="p363"></p>
<!-- Skill Icons -->
<img class="I Ia1 Iy1" id="i111"><img class="I Ia2 Iy1" id="i112"><img class="I Ia3 Iy1" id="i113">
<img class="I Ia1 Iy2" id="i121"><img class="I Ia2 Iy2" id="i122"><img class="I Ia3 Iy2" id="i123">
<img class="I Ia1 Iy3" id="i131"><img class="I Ia2 Iy3" id="i132"><img class="I Ia3 Iy3" id="i133">
<img class="I Ia1 Iy4" id="i141"><img class="I Ia2 Iy4" id="i142"><img class="I Ia3 Iy4" id="i143">
<img class="I Ia1 Iy5" id="i151"><img class="I Ia2 Iy5" id="i152"><img class="I Ia3 Iy5" id="i153">
<img class="I Ia1 Iy6" id="i161"><img class="I Ia2 Iy6" id="i162"><img class="I Ia3 Iy6" id="i163">
<img class="I Ib1 Iy1" id="i211"><img class="I Ib2 Iy1" id="i212"><img class="I Ib3 Iy1" id="i213">
<img class="I Ib1 Iy2" id="i221"><img class="I Ib2 Iy2" id="i222"><img class="I Ib3 Iy2" id="i223">
<img class="I Ib1 Iy3" id="i231"><img class="I Ib2 Iy3" id="i232"><img class="I Ib3 Iy3" id="i233">
<img class="I Ib1 Iy4" id="i241"><img class="I Ib2 Iy4" id="i242"><img class="I Ib3 Iy4" id="i243">
<img class="I Ib1 Iy5" id="i251"><img class="I Ib2 Iy5" id="i252"><img class="I Ib3 Iy5" id="i253">
<img class="I Ib1 Iy6" id="i261"><img class="I Ib2 Iy6" id="i262"><img class="I Ib3 Iy6" id="i263">
<img class="I Ic1 Iy1" id="i311"><img class="I Ic2 Iy1" id="i312"><img class="I Ic3 Iy1" id="i313">
<img class="I Ic1 Iy2" id="i321"><img class="I Ic2 Iy2" id="i322"><img class="I Ic3 Iy2" id="i323">
<img class="I Ic1 Iy3" id="i331"><img class="I Ic2 Iy3" id="i332"><img class="I Ic3 Iy3" id="i333">
<img class="I Ic1 Iy4" id="i341"><img class="I Ic2 Iy4" id="i342"><img class="I Ic3 Iy4" id="i343">
<img class="I Ic1 Iy5" id="i351"><img class="I Ic2 Iy5" id="i352"><img class="I Ic3 Iy5" id="i353">
<img class="I Ic1 Iy6" id="i361"><img class="I Ic2 Iy6" id="i362"><img class="I Ic3 Iy6" id="i363">
<!-- skill hover text -->
<div class="hover" id="tooltip">
<a id="title" class="green-name"></a><br>
<a id="description"></a>
<a id="graytext" class="gray"></a>
<a id="pretext"></a>
<a id="current"></a>
<a id="next_level_text">Next Level</a><br>
<a id="next"></a><br>
<a id="syn_title" class="green"></a>
<a id="syn_text"></a>
</div> <!-- /skill hover text -->
</div> <!-- /GUI Skills -->
<!-- Equipment Menus -->
<div class="dropdown" id="equipment">
<div id="equipment_a" class="equipment">
<select class="dropdown" id="dropdown_helm" onChange="equip('helm', this.value)" onContextMenu="equip('helm', 'helm')"></select>
<select class="dropdown" id="dropdown_armor" onChange="equip('armor', this.value)" onContextMenu="equip('armor', 'armor')"></select>
<select class="dropdown" id="dropdown_gloves" onChange="equip('gloves', this.value)" onContextMenu="equip('gloves', 'gloves')"></select>
<select class="dropdown" id="dropdown_boots" onChange="equip('boots', this.value)" onContextMenu="equip('boots', 'boots')"></select>
<select class="dropdown" id="dropdown_belt" onChange="equip('belt', this.value)" onContextMenu="equip('belt', 'belt')"></select>
<select class="dropdown" id="dropdown_amulet" onChange="equip('amulet', this.value)" onContextMenu="equip('amulet', 'amulet')"></select>
<select class="dropdown" id="dropdown_ring1" onChange="equip('ring1', this.value)" onContextMenu="equip('ring1', 'ring1')"></select>
<select class="dropdown" id="dropdown_ring2" onChange="equip('ring2', this.value)" onContextMenu="equip('ring2', 'ring2')"></select>
<select class="dropdown" id="dropdown_weapon" onChange="equip('weapon', this.value)" onContextMenu="equip('weapon', 'weapon')"></select>
<select class="dropdown" id="dropdown_offhand" onChange="equip('offhand', this.value)" onContextMenu="equip('offhand', 'offhand')"></select>
<br><br>
</div>
<select class="dropdown" id="dropdown_charms" onChange="addCharm(this.value)"></select>
<div id="equipment_b" class="equipment">
<select class="dropdown" id="dropdown_socketables" onChange="addSocketable(this.value)"></select>
<br><br>
<select class="dropdown" id="dropdown_mercenary" onChange="setMercenary(this.value)" onContextMenu="setMercenary('none')"></select>
<select class="dropdown" id="dropdown_merc_helm" onChange="equipMerc('helm', this.value)" onContextMenu="equipMerc('helm', 'helm')"></select>
<select class="dropdown" id="dropdown_merc_armor" onChange="equipMerc('armor', this.value)" onContextMenu="equipMerc('armor', 'armor')"></select>
<select class="dropdown" id="dropdown_merc_weapon" onChange="equipMerc('weapon', this.value)" onContextMenu="equipMerc('weapon', 'weapon')"></select>
<select class="dropdown" id="dropdown_merc_offhand" onChange="equipMerc('offhand', this.value)" onContextMenu="equipMerc('offhand', 'offhand')"></select>
<div id="merc_space"></div>
<div id="golem"><br><select class="dropdown" id="dropdown_golem" onChange="setIronGolem(this.value)" onContextMenu="setIronGolem('none')"></select><br></div>
<br>
<select class="dropdown" id="dropdown_misc" onChange="addEffect('misc',this.value,this.selectedIndex,'')"></select>
</div>
</div> <!-- /Equipment Menus -->
<!-- Corruption Options -->
<div class="dropdown-corruption" id="equipment_corruptions">
<select class="dropdown" id="corruptions_helm" onChange="corrupt('helm', this.value)" onContextMenu="corrupt('helm', 'none')"></select>
<select class="dropdown" id="corruptions_armor" onChange="corrupt('armor', this.value)" onContextMenu="corrupt('armor', 'none')"></select>
<select class="dropdown" id="corruptions_gloves" onChange="corrupt('gloves', this.value)" onContextMenu="corrupt('gloves', 'none')"></select>
<select class="dropdown" id="corruptions_boots" onChange="corrupt('boots', this.value)" onContextMenu="corrupt('boots', 'none')"></select>
<select class="dropdown" id="corruptions_belt" onChange="corrupt('belt', this.value)" onContextMenu="corrupt('belt', 'none')"></select>
<select class="dropdown" id="corruptions_amulet" onChange="corrupt('amulet', this.value)" onContextMenu="corrupt('amulet', 'none')"></select>
<select class="dropdown" id="corruptions_ring1" onChange="corrupt('ring1', this.value)" onContextMenu="corrupt('ring1', 'none')"></select>
<select class="dropdown" id="corruptions_ring2" onChange="corrupt('ring2', this.value)" onContextMenu="corrupt('ring2', 'none')"></select>
<select class="dropdown" id="corruptions_weapon" onChange="corrupt('weapon', this.value)" onContextMenu="corrupt('weapon', 'none')"></select>
<select class="dropdown" id="corruptions_offhand" onChange="corrupt('offhand', this.value)" onContextMenu="corrupt('offhand', 'none')"></select>
</div> <!-- /Corruption Options -->
<!-- inventory -->
<div class="inventory">
<!-- equipment inventory -->
<div id="gui_equipment" class="inv-equipment" oncontextmenu="return false">
<img usemap="#equipmentmap" id="equipment_grid" src="./images/equipment_inventory.png">
<map id="equipmentmap" name="equipmentmap">
<div style="position: relative;">
<div id="helm_" class="equipped_helmet equipped_item flex-box" ondrop="handleSocket(event,'helm',0)" ondragover="allowSocket(event,'helm')" onmouseover="equipmentHover('helm')" onmouseout="equipmentOut()">
<img id="helm_image" class="equipment_image" style="position:absolute; z-index:3;" src="" onClick="inventoryLeftClick(event,'helm')" onContextMenu="inventoryRightClick(event,'helm')">
<div style="position:absolute; z-index:4;" align="center" id="helm">
</div>
</div>
<div id="armor_" class="equipped_armor equipped_item flex-box" ondrop="handleSocket(event,'armor',0)" ondragover="allowSocket(event,'armor')" onmouseover="equipmentHover('armor')" onmouseout="equipmentOut()">
<img id="armor_image" class="equipment_image" src="" onClick="inventoryLeftClick(event,'armor')" onContextMenu="inventoryRightClick(event,'armor')">
<div class="equipment_absolute" align="center" id="armor">
</div>
</div>
<div id="gloves" class="equipped_item" onmouseover="equipmentHover('gloves')" onmouseout="equipmentOut()" align="center">
<img id="gloves_image" src="" onClick="inventoryLeftClick(event,'gloves')" onContextMenu="inventoryRightClick(event,'gloves')">
</div>
<div id="boots" class="equipped_item" onmouseover="equipmentHover('boots')" onmouseout="equipmentOut()" align="center">
<img id="boots_image" src="" onClick="inventoryLeftClick(event,'boots')" onContextMenu="inventoryRightClick(event,'boots')">
</div>
<div id="belt" class="equipped_item" onmouseover="equipmentHover('belt')" onmouseout="equipmentOut()" align="center">
<img id="belt_image" src="" onClick="inventoryLeftClick(event,'belt')" onContextMenu="inventoryRightClick(event,'belt')">
</div>
<div id="amulet" class="equipped_item" onmouseover="equipmentHover('amulet')" onmouseout="equipmentOut()" align="center">
<img id="amulet_image" src="" onContextMenu="equip('amulet', 'amulet')">
</div>
<div id="ring1" class="equipped_ring equipped_item" onmouseover="equipmentHover('ring1')" onmouseout="equipmentOut()" align="center">
<img id="ring1_image" src="" onContextMenu="equip('ring1', 'ring1')">
</div>
<div id="ring2" class="equipped_ring ring equipped_item" onmouseover="equipmentHover('ring2')" onmouseout="equipmentOut()" align="center">
<img id="ring2_image" src="" onContextMenu="equip('ring2', 'ring2')">
</div>
<div id="weapon_" class="equipped_weapon equipped_item flex-box" ondrop="handleSocket(event,'weapon',0)" ondragover="allowSocket(event,'weapon')" onmouseover="equipmentHover('weapon')" onmouseout="equipmentOut()">
<img id="weapon_image" src="" onClick="inventoryLeftClick(event,'weapon')" onContextMenu="inventoryRightClick(event,'weapon')">
<div class="equipment_absolute" align="center" id="weapon">
</div>
</div>
<div id="offhand_" class="equipped_offhand equipped_item flex-box" ondrop="handleSocket(event,'offhand',0)" ondragover="allowSocket(event,'offhand')" onmouseover="equipmentHover('offhand')" onmouseout="equipmentOut()">
<img id="offhand_image" style="position:absolute; z-index:3;" src="" onClick="inventoryLeftClick(event,'offhand')" onContextMenu="inventoryRightClick(event,'offhand')">
<div class="equipment_absolute" align="center" id="offhand">
</div>
</div>
</div>
</map>
</div> <!-- /equipment inventory -->
<!-- charm inventory -->
<div id="gui_charms" class="inv-charms" oncontextmenu="return false">
<img usemap="#charmmap" id="charm_grid" src="./images/charm_inventory.png">
<map id="charmmap" name="charmmap">
<div id="h14" ondrop="drop(event,31)" ondragover="allowDrop(event,31,4)" class="H Hx1 Hy4" onmouseover="itemHover(event, 'h14')" onmouseout="itemOut()"></div>
<div id="h24" ondrop="drop(event,32)" ondragover="allowDrop(event,32,4)" class="H Hx2 Hy4" onmouseover="itemHover(event, 'h24')" onmouseout="itemOut()"></div>
<div id="h34" ondrop="drop(event,33)" ondragover="allowDrop(event,33,4)" class="H Hx3 Hy4" onmouseover="itemHover(event, 'h34')" onmouseout="itemOut()"></div>
<div id="h44" ondrop="drop(event,34)" ondragover="allowDrop(event,34,4)" class="H Hx4 Hy4" onmouseover="itemHover(event, 'h44')" onmouseout="itemOut()"></div>
<div id="h54" ondrop="drop(event,35)" ondragover="allowDrop(event,35,4)" class="H Hx5 Hy4" onmouseover="itemHover(event, 'h54')" onmouseout="itemOut()"></div>
<div id="h64" ondrop="drop(event,36)" ondragover="allowDrop(event,36,4)" class="H Hx6 Hy4" onmouseover="itemHover(event, 'h64')" onmouseout="itemOut()"></div>
<div id="h74" ondrop="drop(event,37)" ondragover="allowDrop(event,37,4)" class="H Hx7 Hy4" onmouseover="itemHover(event, 'h74')" onmouseout="itemOut()"></div>
<div id="h84" ondrop="drop(event,38)" ondragover="allowDrop(event,38,4)" class="H Hx8 Hy4" onmouseover="itemHover(event, 'h84')" onmouseout="itemOut()"></div>
<div id="h94" ondrop="drop(event,39)" ondragover="allowDrop(event,39,4)" class="H Hx9 Hy4" onmouseover="itemHover(event, 'h94')" onmouseout="itemOut()"></div>
<div id="h04" ondrop="drop(event,40)" ondragover="allowDrop(event,40,4)" class="H Hx10 Hy4" onmouseover="itemHover(event, 'h04')" onmouseout="itemOut()"></div>
<div id="h13" ondrop="drop(event,21)" ondragover="allowDrop(event,21,3)" class="H Hx1 Hy3" onmouseover="itemHover(event, 'h13')" onmouseout="itemOut()"></div>
<div id="h23" ondrop="drop(event,22)" ondragover="allowDrop(event,22,3)" class="H Hx2 Hy3" onmouseover="itemHover(event, 'h23')" onmouseout="itemOut()"></div>
<div id="h33" ondrop="drop(event,23)" ondragover="allowDrop(event,23,3)" class="H Hx3 Hy3" onmouseover="itemHover(event, 'h33')" onmouseout="itemOut()"></div>
<div id="h43" ondrop="drop(event,24)" ondragover="allowDrop(event,24,3)" class="H Hx4 Hy3" onmouseover="itemHover(event, 'h43')" onmouseout="itemOut()"></div>
<div id="h53" ondrop="drop(event,25)" ondragover="allowDrop(event,25,3)" class="H Hx5 Hy3" onmouseover="itemHover(event, 'h53')" onmouseout="itemOut()"></div>
<div id="h63" ondrop="drop(event,26)" ondragover="allowDrop(event,26,3)" class="H Hx6 Hy3" onmouseover="itemHover(event, 'h63')" onmouseout="itemOut()"></div>
<div id="h73" ondrop="drop(event,27)" ondragover="allowDrop(event,27,3)" class="H Hx7 Hy3" onmouseover="itemHover(event, 'h73')" onmouseout="itemOut()"></div>
<div id="h83" ondrop="drop(event,28)" ondragover="allowDrop(event,28,3)" class="H Hx8 Hy3" onmouseover="itemHover(event, 'h83')" onmouseout="itemOut()"></div>
<div id="h93" ondrop="drop(event,29)" ondragover="allowDrop(event,29,3)" class="H Hx9 Hy3" onmouseover="itemHover(event, 'h93')" onmouseout="itemOut()"></div>
<div id="h03" ondrop="drop(event,30)" ondragover="allowDrop(event,30,3)" class="H Hx10 Hy3" onmouseover="itemHover(event, 'h03')" onmouseout="itemOut()"></div>
<div id="h12" ondrop="drop(event,11)" ondragover="allowDrop(event,11,2)" class="H Hx1 Hy2" onmouseover="itemHover(event, 'h12')" onmouseout="itemOut()"></div>
<div id="h22" ondrop="drop(event,12)" ondragover="allowDrop(event,12,2)" class="H Hx2 Hy2" onmouseover="itemHover(event, 'h22')" onmouseout="itemOut()"></div>
<div id="h32" ondrop="drop(event,13)" ondragover="allowDrop(event,13,2)" class="H Hx3 Hy2" onmouseover="itemHover(event, 'h32')" onmouseout="itemOut()"></div>
<div id="h42" ondrop="drop(event,14)" ondragover="allowDrop(event,14,2)" class="H Hx4 Hy2" onmouseover="itemHover(event, 'h42')" onmouseout="itemOut()"></div>
<div id="h52" ondrop="drop(event,15)" ondragover="allowDrop(event,15,2)" class="H Hx5 Hy2" onmouseover="itemHover(event, 'h52')" onmouseout="itemOut()"></div>
<div id="h62" ondrop="drop(event,16)" ondragover="allowDrop(event,16,2)" class="H Hx6 Hy2" onmouseover="itemHover(event, 'h62')" onmouseout="itemOut()"></div>
<div id="h72" ondrop="drop(event,17)" ondragover="allowDrop(event,17,2)" class="H Hx7 Hy2" onmouseover="itemHover(event, 'h72')" onmouseout="itemOut()"></div>
<div id="h82" ondrop="drop(event,18)" ondragover="allowDrop(event,18,2)" class="H Hx8 Hy2" onmouseover="itemHover(event, 'h82')" onmouseout="itemOut()"></div>
<div id="h92" ondrop="drop(event,19)" ondragover="allowDrop(event,19,2)" class="H Hx9 Hy2" onmouseover="itemHover(event, 'h92')" onmouseout="itemOut()"></div>
<div id="h02" ondrop="drop(event,20)" ondragover="allowDrop(event,20,2)" class="H Hx10 Hy2" onmouseover="itemHover(event, 'h02')" onmouseout="itemOut()"></div>
<div id="h11" ondrop="drop(event,1)" ondragover="allowDrop(event,1,1)" class="H Hx1 Hy1" onmouseover="itemHover(event, 'h11')" onmouseout="itemOut()"></div>
<div id="h21" ondrop="drop(event,2)" ondragover="allowDrop(event,2,1)" class="H Hx2 Hy1" onmouseover="itemHover(event, 'h21')" onmouseout="itemOut()"></div>
<div id="h31" ondrop="drop(event,3)" ondragover="allowDrop(event,3,1)" class="H Hx3 Hy1" onmouseover="itemHover(event, 'h31')" onmouseout="itemOut()"></div>
<div id="h41" ondrop="drop(event,4)" ondragover="allowDrop(event,4,1)" class="H Hx4 Hy1" onmouseover="itemHover(event, 'h41')" onmouseout="itemOut()"></div>
<div id="h51" ondrop="drop(event,5)" ondragover="allowDrop(event,5,1)" class="H Hx5 Hy1" onmouseover="itemHover(event, 'h51')" onmouseout="itemOut()"></div>
<div id="h61" ondrop="drop(event,6)" ondragover="allowDrop(event,6,1)" class="H Hx6 Hy1" onmouseover="itemHover(event, 'h61')" onmouseout="itemOut()"></div>
<div id="h71" ondrop="drop(event,7)" ondragover="allowDrop(event,7,1)" class="H Hx7 Hy1" onmouseover="itemHover(event, 'h71')" onmouseout="itemOut()"></div>
<div id="h81" ondrop="drop(event,8)" ondragover="allowDrop(event,8,1)" class="H Hx8 Hy1" onmouseover="itemHover(event, 'h81')" onmouseout="itemOut()"></div>
<div id="h91" ondrop="drop(event,9)" ondragover="allowDrop(event,9,1)" class="H Hx9 Hy1" onmouseover="itemHover(event, 'h91')" onmouseout="itemOut()"></div>
<div id="h01" ondrop="drop(event,10)" ondragover="allowDrop(event,10,1)" class="H Hx10 Hy1" onmouseover="itemHover(event, 'h01')" onmouseout="itemOut()"></div>
</map>
</div> <!-- /charm inventory -->
</div> <!-- /inventory -->
</div> <!-- /gui -->
<!-- skill details -->
<div class="no_selection" id="skill_details">
<div id="ar_spacing"><br><br><br><br><br><br><br><br></div>
<div class="gray" id="skill_details_active">
<div id="skill_details_basic">
<div id="mainhand_basic"><a>Basic Attack: </a><a id="basic_attack"></a><br></div>
<div id="offhand_basic"> Offhand: <a id="offhand_basic_damage"></a><br></div>
<a>Attack Rating: </a><a id="ar"></a>
</div>
<div id="skill_details_1" class="skill_detail_wrapper">
<div id="skillDetail1" class="skill_detail">
<select class="dropdown-skill" id="dropdown_skill1" onChange="checkSkill(this.value, 1)" oncontextmenu="checkSkill(' Skill 1', 1)"><option class="gray-all" disabled selected> Skill 1</option></select><a id="skill1_info">: </a>
</div>
<div id="offhand_skill1"><a id="offhand_skill1_damage"></a><br></div>
<a style="visibility:hidden">AR: </a><a id="ar_skill1"></a>
</div>
<div id="skill_details_2" class="skill_detail_wrapper">
<div id="skillDetail2" class="skill_detail">
<select class="dropdown-skill" id="dropdown_skill2" onChange="checkSkill(this.value, 2)" oncontextmenu="checkSkill(' Skill 2', 2)"><option class="gray-all" disabled selected> Skill 2</option></select><a id="skill2_info">: </a>
</div>
<div id="offhand_skill2"><a id="offhand_skill2_damage"></a><br></div>
<a style="visibility:hidden">AR: </a><a id="ar_skill2"></a>
</div>
</div>
<div class="gray" id="skill_details_inactive"></div>
</div> <!-- /skill details -->
<!-- stats -->
<div class="gray" id="stats">
<div id="stats_main_columns">
<div id="demons_and_undead"> <!-- TODO: Incorporate into calculated damage & attack rating (instead of displaying as separate ED/AR) -->
<div class="stat-text-wrapper stat-1">
<br><br>
<font size="2">Damage vs Demons: </font><font size="2" id="damage_vs_demons"></font><br>
<font size="2">Damage vs Undead: </font><font size="2" id="damage_vs_undead"></font><br>
</div>
<div class="stat-text-wrapper stat-2">
<br><br>
<font size="2">AR vs Demons: </font><font size="2" id="ar_vs_demons"></font><br>
<font size="2">AR vs Undead: </font><font size="2" id="ar_vs_undead"></font><br>
</div>
</div>
<div class="stat-text-wrapper stat-3" id="stats_column_1">
<font size="2">Fire Resist: </font><font size="2" id="fres"></font><br>
<font size="2">Cold Resist: </font><font size="2" id="cres"></font><br>
<font size="2">Lightning Resist: </font><font size="2" id="lres"></font><br>
<font size="2">Poison Resist: </font><font size="2" id="pres"></font><br>
<font size="2">Magic Resist: </font><font size="2" id="mres"></font><br>
<font size="2">Damage Reduction: </font><font size="2" id="pdr"></font><br><br>
<font size="2">+ Attack Speed: </font><font size="2" id="ias"></font><br>
<font size="2">Faster Cast Rate: </font><font size="2" id="fcr"></font><br>
<font size="2">Faster Block Rate: </font><font size="2" id="fbr"></font><br>
<font size="2">Faster Hit Recovery: </font><font size="2" id="fhr"></font><br>
<br>
<font size="2">Cooldown Reduction: </font><font size="2" id="cdr"></font><br><br>
<font size="2">Life Leech: </font><font size="2" id="life_leech"></font><br>
<font size="2">Mana Leech: </font><font size="2" id="mana_leech"></font><br><br>
<font size="2">+ Fire Damage: </font><font size="2" id="fdamage"></font><br>
<font size="2">+ Cold Damage: </font><font size="2" id="cdamage"></font><br>
<font size="2">+ Lightning Damage: </font><font size="2" id="ldamage"></font><br>
<font size="2">+ Poison Damage: </font><font size="2" id="pdamage"></font><br>
</div>
<div class="stat-text-wrapper stat-4" id="stats_column_2">
<font size="2">Fire Absorb: </font><font size="2" id="fabsorb"></font><br>
<font size="2">Cold Absorb: </font><font size="2" id="cabsorb"></font><br>
<font size="2">Lightning Absorb: </font><font size="2" id="labsorb"></font><br><br>
<font size="2">Magic Absorb: </font><font size="2" id="mabsorb"></font><br><br><br>
<font size="2">Pierce: </font><font size="2" id="pierce"></font><br>
<font size="2">Crushing Blow: </font><font size="2" id="cblow"></font><br>
<font size="2">Deadly Strike: </font><font size="2" id="dstrike"></font><br>
<font size="2">Critical Strike: </font><font size="2" id="cstrike"></font><br>
<font size="2">Open Wounds: </font><font size="2" id="owounds"></font><br>
<font size="2">Enemy Defense: </font><font size="2" id="enemy_defense"></font><br><br>
<font size="2">Life per Hit: </font><font size="2" id="life_per_hit"></font><br>
<font size="2">Mana per Hit: </font><font size="2" id="mana_per_hit"></font><br><br>
<font size="2">Fire Pierce: </font><font size="2" id="fpierce"></font><br>
<font size="2">Cold Pierce: </font><font size="2" id="cpierce"></font><br>
<font size="2">Lightning Pierce: </font><font size="2" id="lpierce"></font><br>
<font size="2">Poison Pierce: </font><font size="2" id="ppierce"></font><br>
</div>
<div class="stat-text-wrapper stat-5" id="stats_column_3">
<br>
<font size="3">Life: </font><font size="3" id="life"></font><br>
<font size="3">Mana: </font><font size="3" id="mana"></font><br>
<font size="3">Stamina: </font><font size="3" id="stamina"></font><br>
<font size="3">Defense: </font><font size="3" id="defense"></font><br>
<font size="3" id="block_label" style="visibility:hidden;">Block Chance: </font><font size="3" id="block"></font><br><br>
<font size="2">Faster Run/Walk: </font><font size="2" id="frw"></font><br>
<font size="2">Speed: </font><font size="2" id="velocity"></font><br><br>
<font size="2">Poison Reduction: </font><font size="2" id="poison_reduction"></font><br>
<font size="2">Curse Reduction: </font><font size="2" id="curse_reduction"></font><br>
<br><br>
<font size="2">Life per Kill: </font><font size="2" id="life_per_kill"></font><br>
<font size="2">Mana per Kill: </font><font size="2" id="mana_per_kill"></font><br><br>
<font size="2">Enemy Fire Resist: </font><font size="2" id="enemy_fres"></font><br>
<font size="2">Enemy Cold Resist: </font><font size="2" id="enemy_cres"></font><br>
<font size="2">Enemy Lightning Resist: </font><font size="2" id="enemy_lres"></font><br>
<font size="2">Enemy Poison Resist: </font><font size="2" id="enemy_pres"></font><br>
</div>
<div class="stat-text-wrapper stat-6" id="stats_column_4">
<br>
<font>Strength: </font><font id="strength2"></font><br>
<font>Dexterity: </font><font id="dexterity2"></font><br>
<font>Vitality: </font><font id="vitality2"></font><br>
<font>Energy: </font><font id="energy2"></font><br><br><br>
<font size="2">Magic Find: </font><font size="2" id="mf"></font><br>
<font size="2">Gold Find: </font><font size="2" id="gf"></font><br><br>
<font size="2">Damage to Mana: </font><font size="2" id="damage_to_mana"></font><br>
<font size="2">Thorns: </font><font size="2" id="thorns"></font><br><br>
<br>
<font size="2">Life Regen: </font><font size="2" id="life_regen"></font><br>
<font size="2">Mana Regen: </font><font size="2" id="mana_regen"></font><br><br>
<font size="2" id="f4"></font><br>
<font size="2" id="c4"></font><br>
<font size="2" id="l4"></font><br>
<font size="2" id="p4"></font><br>
</div>
</div>
<div id="stats_positioning_alignment">
<div><br><br><br><br><br><br><br><br><br><br><br><br><br></div>
<div id="stats_column_5">
<div id="mercenary_spacing"><br><br><br><br><br></div>
<div id="mercenary_spacing2"><br></div>
<div id="golem_spacing"><br><br><br></div>
<div class="flamme"><font size="2" id="flamme"></font></div>
<font size="2" id="itd"></font>
<font size="2" id="pmh"></font>
<font size="2" id="cbf"></font>
<font size="2" id="knockback"></font>
<font size="2" id="melee_splash"></font>
<font size="2" id="slow_target"></font>
<font size="2" id="freezes_target"></font>
<font size="2" id="blind_on_hit"></font>
<font size="2" id="flee_on_hit"></font>
<font size="2" id="peace"></font>
<div class="statlines"><font size="2" id="statlines"></font></div>
<font size="2" id="light_radius"></font>
<font size="2" id="heal_stam"></font>
<font size="2" id="slower_stam_drain"></font>
<font size="2" id="discount"></font>
<font size="2" id="glow"></font>
<div class="ctc"><font size="2" id="ctc"></font></div>
<div class="cskill"><font size="2" id="cskill"></font></div>
<br>
</div>
<div><br><br></div>
</div>
<textarea style="border:none; background-color:black; resize:none; float:left;" id="inputTextToSave" cols="1" rows="1"></textarea>
</div> <!-- /stats -->
<div id="version_spacing" style="display:none; height:370px; width:869px; color:gray;"></div>
</div> <!-- /interface -->
</div> <!-- /full_interface -->
</div> <!-- /main -->
</body>
</html>
<script>
// initial_load - selects a random class and starts the program
// ---------------------------------
function initial_load() {
skills_all = {amazon:skills_amazon, assassin:skills_assassin, barbarian:skills_barbarian, druid:skills_druid, necromancer:skills_necromancer, paladin:skills_paladin, sorceress:skills_sorceress}
character_all = {amazon:character_amazon, assassin:character_assassin, barbarian:character_barbarian, druid:character_druid, necromancer:character_necromancer, paladin:character_paladin, sorceress:character_sorceress, any:character_any}
// select random class
var random = Math.floor(Math.random() * 7);
var classes = ["amazon","assassin","barbarian","druid","necromancer","paladin","sorceress"];
var initial_class = classes[random];
skills = skills_all[initial_class]
// duplicate info where needed
equipment.ring2 = equipment.ring1
corruptions.ring2 = corruptions.ring1
auras_extra[1].values = skills_all.amazon[10].data.values
// check URL parameters
var version = game_version;
params = new URLSearchParams(window.location.search);
if (params.has('v') == true) {
var v = params.get('v');
if (v.toLowerCase() == "van" || v == "vanilla" || v == "1") { version = 1 }
else if (v.toLowerCase() == "pod" || v == "2") { version = 2 }
else if (v.toLowerCase() == "pd2" || v == "3") { version = 3 }
else { params.set('v', version) }
} else {
params.set('v', version)
}
if (params.has('class') == true) {
if (classes.includes(params.get('class').toLowerCase()) == true) {
initial_class = params.get('class').toLowerCase()
skills = skills_all[initial_class]
}
}
// begin program
if (version != 2) {
changeVersion(version, initial_class) // version = Project D2 or vanilla
} else {
startup(initial_class) // version = Path of Diablo (default)
}
loaded = 1
loadParams()
skillHover(skills[0])
skillOut()
}
</script>