-
Notifications
You must be signed in to change notification settings - Fork 0
/
dbdbuilder2.js
13992 lines (11343 loc) · 451 KB
/
dbdbuilder2.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
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
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//DATA SECTION
/*Code for DbD Character Buider
Author: "Vykaris"
Current Version: 0.99
Game Version: 6.6.0
Date of current version: 16.04.2023*/
//var currentCharacter;
//declare lists for all game elements
//characters
var killers = [];
var survivors = [];
//perks
var killerPerks = [];
var survivorPerks = [];
//killer addon lists
var trapperAddons = [];
var wraithAddons = [];
var billyAddons = [];
var nurseAddons = [];
var mikeAddons = [];
var hagAddons = [];
var doctorAddons = [];
var huntressAddons = [];
var cannibalAddons = [];
var freddyAddons = [];
var pigAddons = [];
var clownAddons = [];
var spiritAddons = [];
var legionAddons = [];
var plagueAddons = [];
var ghostfaceAddons = [];
var demogorgonAddons = [];
var oniAddons = [];
var deathslingerAddons = [];
var pyramidHeadAddons = [];
var blightAddons = [];
var twinAddons = [];
var tricksterAddons = [];
var nemesisAddons = [];
var cenobiteAddons = [];
var artistAddons = [];
var onryoAddons = [];
var dredgeAddons= [];
var mastermindAddons = [];
var knightAddons = [];
var merchantAddons = [];
var singularityAddons = [];
var xenomorphAddons = [];
var goodGuyAddons = [];
var unknownAddons = [];
var lichAddons = [];
var darkLordAddons = [];
//item addon lists
var flashlightAddons = [];
var medkitAddons = [];
var toolboxAddons = [];
var mapAddons = [];
var keyAddons = [];
//offerings
var survivorOfferings = [];
var killerOfferings = [];
//Survivor Items
var survivorItems = [];
//site Path
var filePath = "./graphics/";
var buildPath = "./index.html";
var soundPath = "./sounds/";
//Menu items per page variables;
var columns = 4;
var rows = 8;
//Text Only Test Switcher
var loading = true;
//rng difficulty
var difficulty = 0;
//animation & sound settings
var doAnimation = true;
var doSound = true;
//gui lock feature
var guiIsLocked = false;
//Audio sound
var rngAudio = new Audio(soundPath + "timer5s.ogg");
//characer base class section
function DbDChar(charName, charType) {
this.name = charName;
this.type = charType;
this.itemOrAbility;
this.portrait;
}
//end basic class section
//NOTE KILLERS ARE ADDED MUCH LATER IN THE CODE
//begin basic survivor section
function selectSurvivor() {
var defaultSurvivor = new DbDChar("Default Survivor", "survivor");
defaultSurvivor.repairTime = 131313; //placeholder value
defaultSurvivor.healTime = 131313; //placeholder value
defaultSurvivor.walkSpeed = 131313; //placeholder value
defaultSurvivor.sprintSpeed = 131313; //placeholder value
defaultSurvivor.crouchSpeed = 131313; //placeholder value
return defaultSurvivor;
}
function selectLaurie() {
var laurie = new selectSurvivor();
laurie.name = "Laurie Strode";
laurie.portrait = "S06_charPreview_portrait.png";
return laurie;
}
//ADD
survivors.push(selectLaurie());
function selectDwight() {
var dwight = new selectSurvivor();
dwight.name = "Dwight Fairfield";
dwight.portrait = "S01_charPreview_portrait.png";
return dwight;
}
//ADD
survivors.push(selectDwight());
function selectMeg() {
var meg = new selectSurvivor();
meg.name = "Meg Thomas";
meg.portrait = "S02_charPreview_portrait.png";
return meg;
}
//ADD
survivors.push(selectMeg());
function selectJake() {
var jake = new selectSurvivor();
jake.name = "Jake Park";
jake.portrait = "S04_charPreview_portrait.png";
return jake;
}
//ADD
survivors.push(selectJake());
function selectClaud() {
var claud = new selectSurvivor();
claud.name = "Claudette Morel";
claud.portrait = "S03_charPreview_portrait.png";
return claud;
}
//ADD
survivors.push(selectClaud());
function selectNea() {
var nea = new selectSurvivor();
nea.name = "Nea Karlsson";
nea.portrait = "S05_charPreview_portrait.png";
return nea;
}
//ADD
survivors.push(selectNea());
function selectAce() {
var ace = new selectSurvivor();
ace.name = "Ace Visconti";
ace.portrait = "S07_charPreview_portrait.png";
return ace;
}
//ADD
survivors.push(selectAce());
//BILL
function selectBill() {
var bill = new selectSurvivor();
bill.name = "William Overbeck";
bill.portrait = "S08_charPreview_portrait.png";
return bill;
}
//ADD
survivors.push(selectBill());
//BILL
function selectMin() {
var fMin = new selectSurvivor();
fMin.name = "Feng Min";
fMin.portrait = "S09_charPreview_portrait.png";
return fMin;
}
//ADD
survivors.push(selectMin());
function selectDavid() {
var david = new selectSurvivor();
david.name = "David King";
david.portrait = "S10_charPreview_portrait.png";
return david;
}
//ADD
survivors.push(selectDavid());
function selectQuentin() {
var quent = new selectSurvivor();
quent.name = "Quentin Smith";
quent.portrait = "S11_charPreview_portrait.png";
return quent;
}
//ADD
survivors.push(selectQuentin());
function selectTapp() {
var tapp = new selectSurvivor();
tapp.name = "David Tapp";
tapp.portrait = "S12_charPreview_portrait.png";
return tapp;
}
//ADD
survivors.push(selectTapp());
function selectKate() {
var kate = new selectSurvivor();
kate.name = "Kate Denson";
kate.portrait = "S13_charPreview_portrait.png";
return kate;
}
//ADD
survivors.push(selectKate());
function selectAdam() {
var adam = new selectSurvivor();
adam.name = "Adam Francis";
adam.portrait = "S14_charPreview_portrait.png";
return adam;
}
//ADD
survivors.push(selectAdam());
function selectJeff() {
var jeff = new selectSurvivor();
jeff.name = "Jeff Johansen";
jeff.portrait = "S15_charPreview_portrait.png";
return jeff;
}
//ADD
survivors.push(selectJeff());
function selectJane() {
var jane = new selectSurvivor();
jane.name = "Jane Romero";
jane.portrait = "S16_charPreview_portrait.png";
return jane;
}
//ADD
survivors.push(selectJane());
function selectAsh() {
var ash = new selectSurvivor();
ash.name = "Ash Williams";
ash.portrait = "S17_charPreview_portrait.png";
return ash;
}
//ADD
survivors.push(selectAsh());
function selectNancy() {
var nancy = new selectSurvivor();
nancy.name = "Nancy Wheeler";
nancy.portrait = "S18_charPreview_portrait.png";
return nancy;
}
//ADD
survivors.push(selectNancy());
function selectSteve() {
var steve = new selectSurvivor();
steve.name = "Steve Harrington";
steve.portrait = "S19_charPreview_portrait.png";
return steve;
}
//ADD
survivors.push(selectSteve());
function selectYuik() {
var yuik = new selectSurvivor();
yuik.name = "Yui Kimura";
yuik.portrait = "S20_charPreview_portrait.png";
return yuik;
}
//ADD
survivors.push(selectYuik());
function selectZarina() {
var zarina = new selectSurvivor();
zarina.name = "Zarina Kassir";
zarina.portrait = "S21_charPreview_portrait.png";
return zarina;
}
//ADD
survivors.push(selectZarina());
function selectCheryl() {
var cheryl = new selectSurvivor();
cheryl.name = "Cheryl Mason";
cheryl.portrait = "S22_charPreview_portrait.png";
return cheryl;
}
//ADD
survivors.push(selectCheryl());
function selectFelix() {
var felix = new selectSurvivor();
felix.name = "Felix Richter";
felix.portrait = "S23_charPreview_portrait.png";
return felix;
}
//ADD
survivors.push(selectFelix());
function selectElodie() {
var elodie = new selectSurvivor();
elodie.name = "Elodie Rakoto";
elodie.portrait = "S24_charPreview_portrait.png";
return elodie;
}
//ADD
survivors.push(selectElodie());
function selectYunJin() {
var yun = new selectSurvivor();
yun.name = "Yun-Jin Lee";
yun.portrait = "S25_charPreview_portrait.png";
return yun;
}
//ADD
survivors.push(selectYunJin());
function selectJill() {
var jill = new selectSurvivor();
jill.name = "Jill Valentine";
jill.portrait = "S26_charPreview_portrait.png";
return jill;
}
//ADD
survivors.push(selectJill());
function selectLeonS() {
var leon = new selectSurvivor();
leon.name = "Leon S. Kennedy";
leon.portrait = "S27_charPreview_portrait.png";
return leon;
}
//ADD
survivors.push(selectLeonS());
function selectMikaela() {
var mikaela = new selectSurvivor();
mikaela.name = "Mikaela Reid";
mikaela.portrait = "S28_charPreview_portrait.png";
return mikaela;
}
//ADD
survivors.push(selectMikaela());
function selectJonah() {
var jonah = new selectSurvivor();
jonah.name = "Jonah Vasquez";
jonah.portrait = "S29_charPreview_portrait.png";
return jonah;
}
//ADD
survivors.push(selectJonah());
function selectYoichi() {
var yoichi = new selectSurvivor();
yoichi.name = "Yoichi Asakawa";
yoichi.portrait = "S30_charPreview_portrait.png";
return yoichi;
}
//ADD
survivors.push(selectYoichi());
function selectHaddie() {
var haddie = new selectSurvivor();
haddie.name = "Haddie Kaur";
haddie.portrait = "S31_charPreview_portrait.png";
return haddie;
}
//ADD
survivors.push(selectHaddie());
function selectAda() {
var ada = new selectSurvivor();
ada.name = "Ada Wong";
ada.portrait = "S32_charPreview_portrait.png";
return ada;
}
//ADD
survivors.push(selectAda());
function selectRebecca() {
var rebecca = new selectSurvivor();
rebecca.name = "Rebecca Chambers";
rebecca.portrait = "S33_charPreview_portrait.png";
return rebecca;
}
//ADD
survivors.push(selectRebecca());
function selectToscano() {
var toscano = new selectSurvivor();
toscano.name = "Vittorio Toscano";
toscano.portrait = "S34_charPreview_portrait.png";
return toscano;
}
//ADD
survivors.push(selectToscano());
function selectThalita() {
var thalita = new selectSurvivor();
thalita.name = "Thalita Lyra";
thalita.portrait = "S35_charPreview_portrait.png";
return thalita;
}
//ADD
survivors.push(selectThalita());
function selectRenato() {
var renato = new selectSurvivor();
renato.name = "Renato Lyra";
renato.portrait = "S36_charPreview_portrait.png";
return renato;
}
//ADD
survivors.push(selectRenato());
function selectGabriel() {
var gabriel = new selectSurvivor();
gabriel.name = "Gabriel Soma";
gabriel.portrait = "S37_charPreview_portrait.png";
return gabriel;
}
//ADD
survivors.push(selectGabriel());
function selectNicolas() {
var nicolas = new selectSurvivor();
nicolas.name = "Nicolas Cage";
nicolas.portrait = "S38_charPreview_portrait.png";
return nicolas;
}
//ADD
survivors.push(selectNicolas());
function selectEllen() {
var ellen = new selectSurvivor();
ellen.name = "Ellen Ripley";
ellen.portrait = "S39_charPreview_portrait.png";
return ellen;
}
//ADD
survivors.push(selectEllen());
function selectAlan() {
var alen = new selectSurvivor();
alen.name = "Alan Wake";
alen.portrait = "S40_charPreview_portrait.png";
return alen;
}
//ADD
survivors.push(selectAlan());
function selectSable() {
var sable = new selectSurvivor();
sable.name = "Sable Ward";
sable.portrait = "S41_charPreview_portrait.png";
return sable;
}
//ADD
survivors.push(selectSable());
function selectTroupe() {
var troupe = new selectSurvivor();
troupe.name = "The Troupe";
troupe.portrait = "S42_charPreview_portrait.png";
return troupe;
}
//ADD
survivors.push(selectTroupe());
function selectLaraCroft() {
var lara = new selectSurvivor();
lara.name = "Lara Croft";
lara.portrait = "S43_charPreview_portrait.png";
return lara;
}
//ADD
survivors.push(selectLaraCroft());
function selectTrevor() {
var trevor = new selectSurvivor();
trevor.name = "Trevor Belmont";
trevor.portrait = "S44_charPreview_portrait.png";
return trevor;
}
//ADD
survivors.push(selectTrevor());
//ADD ANY NEW SURVIVORS ABOVE HERE AND THEN PUSH TO LIST -- P L O X
//end base survivor section
//begin loadout item section
//base loadout item
function DbDItem(name, effect, rarity, tooltip, icon) {
this.name = name;
this.effect = effect;
this.rarity = rarity;
this.tooltip = tooltip;
this.icon = icon;
this.isRedacted = false;
}
//base survivor equipment
function survItems(name, effect, rarity, tooltip, icon, itype, itarget, meterAmount, meterType) {
var item = new DbDItem(name, effect, rarity, tooltip, icon);
item.type = itype;
item.target = itarget;
item.meterType = meterType;
item.meterAmount = meterAmount;
return item;
}
//Begin Specific Survivor Equipment Items Section
//Medkits
function campingAidKit() {
var sItem = survItems("Camping Aid Kit", ["Healing speed considerably increased", "Gain self-healing ability"], "Common", "Grants self-heal and considerable healing speed increase", "IconItems_rundownAidKit.png", "First Aid Kit", ["extra", "extra"], 8, "charges");
return sItem;
}
//ADD
survivorItems.push(campingAidKit());
function firstAidKit() {
var sItem = survItems("First Aid Kit", ["Healing speed considerably increased", "Gain self-healing ability"], "Uncommon", "Grants self-heal and considerable healing speed increase", "IconItems_firstAidKit.png", "First Aid Kit", ["extra", "extra"], 16, "charges");
return sItem;
}
//ADD
survivorItems.push(firstAidKit());
function emergencyMedkit() {
var sItem = survItems("Emergency Med-Kit", ["Healing speed tremendously increased", "Gain self-healing ability", "Moderately decreased charge consumption"], "Rare", "Grants self-heal and tremendous healing speed increase", "iconItems_medkit.png", "First Aid Kit", ["extra", "extra", "extra"], 16, "charges");
return sItem;
}
//ADD
survivorItems.push(emergencyMedkit());
function rangerMedkit() {
var sItem = survItems("Ranger Med-Kit", ["Healing speed considerably increased", "Gain self-healing ability", "Increased success and bonus zones"], "Very Rare", "Grants self-heal and considerable healing speed increase", "IconItems_rangersAidKit.png", "First Aid Kit", ["extra", "extra", "extra"], 24, "charges");
return sItem;
}
//ADD
survivorItems.push(rangerMedkit());
//Toolboxes
function toolbox() {
var sItem = survItems("Toolbox", ["Grants sabotage ability", "Moderately increased repair speed"], "Uncommon", "Grants sabotage and increased repair speed.", "IconItems_toolbox.png", "Toolbox", ["extra", "extra"], 130, "charges");
return sItem;
}
//ADD
survivorItems.push(toolbox());
function wornOutTools() {
var sItem = survItems("Worn-Out Tools", ["Grants sabotage ability", "Moderately increased repair speed", "Slightly decreased success zones"], "Common", "Grants sabotage and increased repair speed.", "IconItems_toolboxWornOut.png", "Toolbox", ["extra", "extra", "extra"], 80, "charges");
return sItem;
}
//ADD
survivorItems.push(wornOutTools());
function mechanicsToolbox() {
var sItem = survItems("Mechanic's Toolbox", ["Grants sabotage ability", "Considerably increased repair speed", "Moderately reduced sabotage speed"], "Rare", "Grants sabotage and increased repair speed.", "IconItems_toolboxMechanics.png", "Toolbox", ["extra", "extra", "extra"], 80, "charges");
return sItem;
}
//ADD
survivorItems.push(mechanicsToolbox());
function commodiousToolbox() {
var sItem = survItems("Commodious Toolbox", ["Grants sabotage ability", "Moderately increased repair speed"], "Rare", "Grants sabotage and increased repair speed.", "IconItems_toolboxCommodious.png", "Toolbox", ["extra", "extra"], 180, "charges");
return sItem;
}
//ADD
survivorItems.push(commodiousToolbox());
function engineersToolbox() {
var sItem = survItems("Engineer's Toolbox", ["Tremendously increased repair speed"], "Very Rare", "Grants increased repair speed.", "IconItems_toolboxEngineers.png", "Toolbox", ["extra"], 80, "charges");
return sItem;
}
//ADD
survivorItems.push(engineersToolbox());
function alexsToolbox() {
var sItem = survItems("Alex's Toolbox", ["Slightly increased repair speed", "Grants sabotage ability", "Moderately increased sabotage speed"], "Very Rare", "Grants sabotage and increased repair speed.", "IconItems_toolboxAlexs.png", "Toolbox", ["extra", "extra", "extra"], 130, "charges");
return sItem;
}
//ADD
survivorItems.push(alexsToolbox());
//Flashlights
function flashlight() {
var sItem = survItems("Flashlight", ["Blinds the killer", "Destroys hag traps"], "Uncommon", "Blinds the killer when aimed accurately", "Yellow_Flashlight.png", "Flashlight", ["extra", "extra"], 8, "seconds");
return sItem;
}
//ADD
survivorItems.push(flashlight());
function sportFlashlight() {
var sItem = survItems("Sport Flashlight", ["Blinds the killer", "Destroys hag traps", "Slightly increased accuracy", "Slightly decreased battery consumption"], "Rare", "Blinds the killer when aimed accurately", "IconItems_flashlightSport.png", "Flashlight", ["extra", "extra", "extra", "extra"], 8, "seconds");
return sItem;
}
//ADD
survivorItems.push(sportFlashlight());
function utilityFlashlight() {
var sItem = survItems("Utility Flashlight", ["Blinds the killer", "Destroys hag traps", "Slightly reduced accuracy", "Moderately increased effects"], "Very Rare", "Blinds the killer when aimed accurately", "IconItems_flashlightUtility.png", "Flashlight", ["extra", "extra", "extra", "extra"], 12, "seconds");
return sItem;
}
//ADD
survivorItems.push(utilityFlashlight());
//Keys
function brokenKey() {
var sItem = survItems("Broken Key", ["Does nothing on its own"], "Rare", "Does nothing on its own", "IconItems_brokenKey.png", "Key", ["extra"], 10, "seconds");
return sItem;
}
//ADD
survivorItems.push(brokenKey());
function dullKey() {
var sItem = survItems("Dull Key", ["Consume to open the hatch"], "Very Rare", "Consume to open the hatch", "IconItems_dullKey.png", "Key", ["extra"], 5, "seconds");
return sItem;
}
//ADD
survivorItems.push(dullKey());
function skeletonKey() {
var sItem = survItems("Skeleton Key", ["Consume to open the hatch"], "Ultra Rare", "Consume to open the hatch", "IconItems_key.png", "Key", ["extra"], 30, "seconds");
return sItem;
}
//ADD
survivorItems.push(skeletonKey());
//Maps
function sMap() {
var sItem = survItems("Map", ["Stars with one generator tracked", "Track generators within an 8 meter range"], "Rare", "Tracks generators", "IconItems_map.png", "Map", ["extra", "extra"], 20, "seconds");
return sItem;
}
//ADD
survivorItems.push(sMap());
function rainbowMap() {
var sItem = survItems("Rainbow Map", ["Stars with three things tracked", "Track all objectives within an 8 meter range"], "Ultra Rare", "Tracks objectives", "IconItems_rainbowMap.png", "Map", ["extra", "extra"], 20, "seconds");
return sItem;
}
//ADD
survivorItems.push(rainbowMap());
//Chinese Firecracker
function chineseFirecracker() {
var sItem = survItems("Chinese Firecracker", ["Distracts the Killer.", "Can blind and deafen the killer temporarily."], "event", "Explosive distraction device.", "IconItems_chineseFirecracker.png", "Chinese Firecracker", ["extra", "extra"], 1, "explosive");
sItem.isRedacted = false;
return sItem;
}
//ADD
survivorItems.push(chineseFirecracker());
function willOWisp() {
var sItem = survItems("Will O' Wisp", ["item text", "item text"], "event", "item text", "iconItems_flashlightHalloween.png", "Flashlight", ["extra", "extra"], 8, "seconds");
sItem.isRedacted = false;
return sItem;
}
//ADD
survivorItems.push(willOWisp());
function lunchbox() {
var sItem = survItems("All Hallows' Eve Lunchbox", ["item text", "item text"], "event", "item text", "iconItems_medkitHalloween.png", "First Aid Kit", ["extra", "extra"], 16, "charges");
sItem.isRedacted = false;
return sItem;
}
//ADD
survivorItems.push(lunchbox());
function winterCracker() {
var sItem = survItems("Winter Party Starter", ["item text", "item text"], "event", "item text", "iconItems_winterEventFirecracker.png", "Explosive distraction device.", ["extra", "extra"], 1, "explosive");
sItem.isRedacted = false;
return sItem;
}
//ADD
survivorItems.push(winterCracker());
function partyPopper() {
var sItem = survItems("Third Year Party Starter (2019)", ["item text", "item text"], "event", "item text", "iconItems_partyPopper.png", "Explosive distraction device.", ["extra", "extra"], 1, "explosive");
sItem.isRedacted = false;
return sItem;
}
//ADD
survivorItems.push(partyPopper());
function anniversaryFlashlight2020() {
var sItem = survItems("Anniversary Flashlight (2020)", ["item text", "item text"], "event", "item text", "iconItems_flashlight_anniversary2020.png", "Flashlight", ["extra", "extra"], 8, "seconds");
sItem.isRedacted = false;
return sItem;
}
//ADD
survivorItems.push(anniversaryFlashlight2020());
function anniversaryFlashlight2022() {
var sItem = survItems("Masquerade Flashlight (2022)", ["item text", "item text"], "event", "item text", "iconItems_flashlight_anniversary2022.png", "Flashlight", ["extra", "extra"], 8, "seconds");
sItem.isRedacted = false;
return sItem;
}
//ADD
survivorItems.push(anniversaryFlashlight2020());
function anniversaryMedKit2020() {
var sItem = survItems("Anniversary Med-Kit (2020)", ["item text", "item text"], "event", "item text", "iconItems_medkit_anniversary2020.png", "First Aid Kit", ["extra", "extra"], 24, "charges");
sItem.isRedacted = false;
return sItem;
}
//ADD
survivorItems.push(anniversaryMedKit2020());
function anniversaryMedKit2022() {
var sItem = survItems("Masquerade Med-Kit (2022)", ["item text", "item text"], "event", "item text", "iconItems_medkit_anniversary2022.png", "First Aid Kit", ["extra", "extra"], 24, "charges");
sItem.isRedacted = false;
return sItem;
}
//ADD
survivorItems.push(anniversaryMedKit2022());
function anniversaryToolBox2021() {
var sItem = survItems("Anniversary Toolbox (2021)", ["item text", "item text"], "event", "item text", "iconItems_toolbox_anniversary2021.png", "Toolbox", ["extra", "extra"], 32, "charges")
sItem.isRedacted = false;
return sItem;
}
//ADD
survivorItems.push(anniversaryToolBox2021());
function anniversaryToolBox2022() {
var sItem = survItems("Masquerade Toolbox (2022)", ["item text", "item text"], "event", "item text", "iconItems_toolbox_anniversary2022.png", "Toolbox", ["extra", "extra"], 32, "charges")
sItem.isRedacted = false;
return sItem;
}
//ADD
survivorItems.push(anniversaryToolBox2022());
function festiveToolbox() {
var sItem = survItems("Festive Toolbox (2019)", ["item text", "item text"], "event", "item text", "iconItems_toolboxLunar.png", "Toolbox", ["extra", "extra"], 32, "charges")
sItem.isRedacted = false;
return sItem;
}
//ADD
survivorItems.push(festiveToolbox());
//ADD ANY NEW SURVIVOR ITEMS ABOVE THIS TEXT
//End Specific Survivor Equipment Items Section
//base add on Section
function selectAddOn(name, effect, rarity, tooltip, icon, combinesWith, itarget) {
var addOn = new DbDItem(name, effect, rarity, tooltip, icon, combinesWith, itarget);
addOn.combinesWith = combinesWith;
addOn.target = itarget;
addOn.isSelected = false;
addOn.type = combinesWith;
return addOn;
}
//Begin specific add on Section
//Specific survivor Add-ons
//medkit Add-ons
function bandages() {
var addon = selectAddOn("Bandages", ["Add 6 charges to medkit."], "Common", "Add 6 charges to medkit.", "IconAddon_bandages.png", "First Aid Kit", ["extra"]);
return addon;
}
//ADD
medkitAddons.push(bandages());
function butterflyTape() {
var addon = selectAddOn("Butterfly Tape", ["Slightly increased healing speed."], "Common", "Slightly increased healing speed.", "IconAddon_butterflyTape.png", "First Aid Kit", ["extra"]);
return addon;
}
//ADD
medkitAddons.push(butterflyTape());
function rubberGloves() {
var addon = selectAddOn("Rubber Gloves", ["Slightly decreased healing skill check difficulty."], "Common", "Slightly decreased healing skill check difficulty.", "IconAddon_gloves.png", "First Aid Kit", ["extra"]);
return addon;
}
//ADD
medkitAddons.push(rubberGloves());
function medicalScissors() {
var addon = selectAddOn("Medical Scissors", ["Moderately increased healing speed."], "Uncommon", "Moderately increased healing speed.", "IconAddon_scissors.png", "First Aid Kit", ["extra"]);
return addon;
}
//ADD
medkitAddons.push(medicalScissors());
function needleAndThread() {
var addon = selectAddOn("Needle & Thread", ["Slightly increased chance to trigger a skill check.", "Considerably reduced success zones.", "Moderately increased healing speed."], "Uncommon", "Moderately decreased healing skill check difficulty.", "IconAddon_needAndThread.png", "First Aid Kit", ["extra", "extra", "extra"]);
return addon;
}
//ADD
medkitAddons.push(needleAndThread());
function gauzeRoll() {
var addon = selectAddOn("Gauze Roll", ["Adds 8 charges to the medkit."], "Uncommon", "Adds 8 charges to the medkit.", "IconAddon_gauseRoll.png", "First Aid Kit", ["extra"]);
return addon;
}
//ADD
medkitAddons.push(gauzeRoll());
function sponge() {
var addon = selectAddOn("Sponge", ["Moderately decreased skill check difficulty."], "Uncommon", "Moderately decreased skill check difficulty.", "IconAddon_sponge.png", "First Aid Kit", ["extra"]);
return addon;
}
//ADD
medkitAddons.push(sponge());
function selfAdherentWrap() {
var addon = selectAddOn("Self Adherent Wrap", ["Adds 8 charges to the medkit.", "Slightly increased healing speed."], "Uncommon", "Adds 8 charges to the medkit. Increased heal speed.", "IconAddon_selfAdherentWrap.png", "First Aid Kit", ["extra", "extra"]);
return addon;
}
//ADD
medkitAddons.push(selfAdherentWrap());
function gelDressings() {
var addon = selectAddOn("Gel Dressings", ["Adds 10 charges to the medkit."], "Rare", "Adds 10 charges to the medkit.", "IconAddon_gelDressings.png", "First Aid Kit", ["extra"]);
return addon;
}
//ADD
medkitAddons.push(gelDressings());
function stypticAgent() {
var addon = selectAddOn("Styptic Agent", ["25% reduction in charges.", "Instantly heal one state on secondary action", "Consumes medkit on use."], "Very Rare", "Insta heal.", "IconAddon_stypticAgent.png", "First Aid Kit", ["extra", "extra", "extra"]);
return addon;
}
//ADD
medkitAddons.push(stypticAgent());
function abdominalDressing() {
var addon = selectAddOn("Abdominal Dressing", ["Considerably increased healing speed.", "25% reduction in charges."], "Rare", "Reduced charges, increase heal speed.", "IconAddon_abdominalDressing.png", "First Aid Kit", ["extra", "extra"]);
return addon;
}
//ADD
medkitAddons.push(abdominalDressing());
function surgicalSuture() {
var addon = selectAddOn("Surgical Suture", ["Slightly increased chance for a skill check.", "Moderate reduction in skill check success zones.", "Moderately increased healing speed."], "Rare", "Reduced skill check success, increased heal speed.", "IconAddon_surgicalSuture.png", "First Aid Kit", ["extra", "extra", "extra"]);
return addon;
}
//ADD
medkitAddons.push(surgicalSuture());
function antiHemoragicSyringe() {
var addon = selectAddOn("Anti-Hemorrhagic Syringe", ["50% reduction in charges.", "Completely heal on secondary action", "Consumes medkit on use."], "Ultra Rare", "Insta heal.", "IconAddon_syringe.png", "First Aid Kit", ["extra", "extra", "extra"]);
return addon;
}
//ADD
medkitAddons.push(antiHemoragicSyringe());
function refinedSerum() {
var addon = selectAddOn("Refined Serum", ["A refined version of the Putrid Serum that's mostly safe for human consumption. Mostly.", "Creates a Blight trail behind the Survivor.", "Moderately increases Movement speed for 16 seconds."], "event", "second use", "iconAddon_blightedSyringe.png", "First Aid Kit", ["extra", "extra", "extra"]);
return addon;
}
//ADD
medkitAddons.push(refinedSerum());
//ADD ADDITIONAL ITEMS OF THIS TYPE ABOVE THIS LINE
//toolbox Add-ons
function cleanRag() {
var addon = selectAddOn("Clean Rag", ["Slightly increased repair speed."], "Common", "Slightly increased repair speed.", "IconAddon_cleanRag.png", "Toolbox", ["extra"]);
return addon;
}
//ADD
toolboxAddons.push(cleanRag());
function scraps() {
var addon = selectAddOn("Scraps", ["Adds 15 charges to the toolbox."], "Common", "Adds 15 charges to the toolbox.", "IconAddon_scraps.png", "Toolbox", ["extra"]);
return addon;
}
//ADD
toolboxAddons.push(scraps());
function springClamp() {
var addon = selectAddOn("Spring Clamp", ["Slightly increased skill check success zones."], "Common", "Slightly increased skill check success zones.", "IconAddon_springClamp.png", "Toolbox", ["extra"]);
return addon;
}
//ADD
toolboxAddons.push(springClamp());
function gripWrench() {
var addon = selectAddOn("Grip Wrench", ["Moderately increased skill check success zones."], "Uncommon", "Moderately increased skill check success zones.", "IconAddon_gripWrench.png", "Toolbox", ["extra"]);
return addon;
}
//ADD
toolboxAddons.push(gripWrench());
function instructions() {
var addon = selectAddOn("Instructions", ["Moderately increased toolbox efficiency."], "Uncommon", "Moderately increased toolbox efficiency.", "IconAddon_instructions.png", "Toolbox", ["extra"]);
return addon;
}
//ADD
toolboxAddons.push(instructions());
function wireSpool() {
var addon = selectAddOn("Wire Spool", ["Adds 30 charges to the toolbox."], "Uncommon", "Adds 30 charges to the toolbox.", "IconAddon_spoolOfWire.png", "Toolbox", ["extra"]);
return addon;
}
//ADD
toolboxAddons.push(wireSpool());
function protectiveGloves() {