-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathability.html
More file actions
1238 lines (1105 loc) · 66.6 KB
/
Copy pathability.html
File metadata and controls
1238 lines (1105 loc) · 66.6 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<!-- Bootstrap CSS -->
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css"
integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
<link rel="stylesheet" href="https://unpkg.com/bootstrap-table@1.21.0/dist/bootstrap-table.min.css" />
<script
src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js"
integrity="sha384-vtXRMe3mGCbOeY7l30aIg8H9p3GdeSe4IFlP6G8JMa7o7lXvnz3GFKzPxzJdPfGK"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-Fy6S3B9q64WdZWQUiU+q4/2Lc9npb8tCaSX9FK7E8HnRr0Jz8D6OP9dO5Vg3Q9ct"
crossorigin="anonymous"
></script>
<script defer src="js/dist/json-formatter.umd.js" charset="UTF-8"></script>
<script src="https://unpkg.com/bootstrap-table@1.21.0/dist/bootstrap-table.min.js"></script>
<title>Splatoon 3 - Ability Index</title>
<style>
body {
background-color: #e9ecef;
}
footer {
border-top: 1px solid rgba(86, 61, 124, 0.2);
}
.bd-placeholder-img {
font-size: 1.125rem;
text-anchor: middle;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
@media (min-width: 768px) {
.bd-placeholder-img-lg {
font-size: 3.5rem;
}
}
.themed-grid-col {
padding-top: 15px;
padding-bottom: 15px;
background-color: rgba(86, 61, 124, 0.15);
border: 1px solid rgba(86, 61, 124, 0.2);
}
.parameterContent {
margin-top: 1em;
border: 1px solid rgba(54, 38, 78, 0.2);
background-color: rgba(34, 19, 56, 0.2);
}
.AbilityIntro {
background-color: #fff;
border: 1px solid #dee2e6;
padding: 15px;
border-radius: 1rem;
margin-top: 10px;
}
h1 {
margin: 1rem;
}
h2 {
margin: 1rem;
}
h3 {
margin: 1rem;
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-md navbar-dark bg-dark">
<a class="navbar-brand" href="#">Misc Database</a>
<button
class="navbar-toggler"
type="button"
data-toggle="collapse"
data-target="#navbarCollapse"
aria-controls="navbarCollapse"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse"></div>
</nav>
<main role="main">
<div class="jumbotron">
<div class="col-sm-8 mx-auto">
<h1>Splatoon 3 - Ability Index</h1>
<select class="form-control" id="version"></select>
<ul class="nav nav-tabs" id="modes" role="tablist"></ul>
<div class="tab-content" id="modeTabControl"></div>
</div>
</div>
<script type="module">
import {
generateHeader,
get_prefix,
localize,
get_image_tag,
format_img,
add_tab,
add_table,
misc_url,
} from "./js/Utility.js"
generateHeader($("#navbarCollapse"))
const prefix = get_prefix()
window.version = "100"
window.lang_dict = {}
function num_formatter(value) {
if (value === undefined) return 1
return value
}
$.getJSON(prefix + "versions.json", vers => {
let last = 0
vers.forEach(ver => {
if (ver === "099") {
$("#version").append(new Option("Testfire", ver))
} else {
$("#version").append(
new Option(
ver.length === 3 ? ver[0] + "." + ver[1] + "." + ver[2] : ver[0] + ver[1] + "." + ver[2] + "." + ver[3],
ver
)
)
}
last = ver
})
$("#version").val(last)
version = last
load_data()
})
lang_dict = {
"CommonMsg/Gear/GearPowerExp": {
Action_Up: "Makes Squid Rolls and Squid Surges easier to do\nand steadies your aim when firing after jumping.",
ComeBack: "Boosts some of your abilities for a short time\nafter respawning.",
DeathMarking: "Once you've respawned, reveals the position of\nthe players who splatted you.",
EndAllUp: "Boosts ink-recovery rate and weapon-ink\nefficiency for the last 30 seconds of battle.",
ExSkillDouble: "Doubles the effect of other gear abilities\nattached to this gear.",
Exorcist: "Increases respawn time and special-gauge spawn\npenalty for you and any player you splat.",
HumanMove_Up: "Increases movement speed in Inkling or\nOctoling form.",
InkRecovery_Up: "Increases ink-tank refill rate.",
JumpTime_Save: "Increases Super Jump speed.",
MainInk_Save: "Decreases amount of ink consumed by your\nmain weapon.",
MinorityUp: "Fills special gauge automatically if your team\nhas fewer active players than the enemy.",
None: "Unlock this ability by battling while wearing\nthis gear.",
ObjectEffect_Up: "Increases damage dealt to all nonplayer targets.",
OpInkEffect_Reduction: "Reduces damage taken and improves mobility\nwhen walking through enemy ink.",
RespawnSpecialGauge_Save: "Reduces special-gauge decrease after\ngetting splatted.",
RespawnTime_Save: "Reduces respawn time after getting splatted\nrepeatedly without splatting any opponents.",
SomersaultLanding:
"Tilting the Left Stick during a Super Jump lets\nyou perform a roll in that direction when landing.",
SpecialIncrease_Up: "Increases special-gauge fill rate.",
SpecialSpec_Up: "Upgrades your special weapon.",
SquidMoveSpatter_Reduction: "Leaves no trace when swimming in inked ground\nbut slightly reduces swim speed.",
SquidMove_Up: "Increases movement speed in swim form.",
StartAllUp: "Boosts your speed while moving for the first 30\nseconds of battle.",
SubEffect_Reduction: "Reduces effects and damage from sub weapons.",
SubInk_Save: "Decreases amount of ink consumed by your\nsub weapon.",
SubSpec_Up: "Upgrades your sub weapon.",
SuperJumpSign_Hide: "Hides your Super Jump landing point from\ndistant players.",
ThermalInk: "Allows you to track distant players hit with\nshots from your main weapon.",
},
"CommonMsg/Gear/GearPowerName": {
Action_Up: "Intensify Action",
ComeBack: "Comeback",
DeathMarking: "Haunt",
EndAllUp: "Last-Ditch Effort",
ExSkillDouble: "Ability Doubler",
Exorcist: "Respawn Punisher",
HumanMove_Up: "Run Speed Up",
InkRecovery_Up: "Ink Recovery Up",
JumpTime_Save: "Quick Super Jump",
MainInk_Save: "Ink Saver (Main)",
MinorityUp: "Tenacity",
None: "",
ObjectEffect_Up: "Object Shredder",
OpInkEffect_Reduction: "Ink Resistance Up",
RespawnSpecialGauge_Save: "Special Saver",
RespawnTime_Save: "Quick Respawn",
SomersaultLanding: "Drop Roller",
SpecialIncrease_Up: "Special Charge Up",
SpecialSpec_Up: "Special Power Up",
SquidMoveSpatter_Reduction: "Ninja Squid",
SquidMove_Up: "Swim Speed Up",
StartAllUp: "Opening Gambit",
SubEffect_Reduction: "Sub Resistance Up",
SubInk_Save: "Ink Saver (Sub)",
SubSpec_Up: "Sub Power Up",
SuperJumpSign_Hide: "Stealth Jump",
ThermalInk: "Thermal Ink",
},
}
const useable_ap = [
0, 3, 6, 9, 10, 12, 13, 15, 16, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39,
41, 42, 44, 45, 47, 48, 51, 54, 57,
]
function calcSkillPoint2Percent(ap) {
return Math.min(3.3 * ap - 0.027 * Math.pow(ap, 2), 100)
}
function get_slope(high, mid, low) {
if (mid == low) {
return 0
}
return (mid - low) / (high - low)
}
function lerpN(p, s) {
if (s.toFixed(3) == 0.5) {
return p
}
if (p == 0.0) {
return p
}
if (p == 1.0) {
return p
}
if (s != 0.5) {
return Math.pow(Math.E, -1 * ((Math.log(p) * Math.log(s)) / Math.log(2)))
}
}
function get_effect(abilityVals, ap) {
const high = abilityVals[0]
const mid = abilityVals[1]
const low = abilityVals[2]
const slope = get_slope(high, mid, low)
const tmp = calcSkillPoint2Percent(ap)
const percentage = tmp / 100.0
const result = low + (high - low) * lerpN(slope, percentage)
return [result, lerpN(slope, percentage)]
}
function add_ability_table(key, value) {
const new_data = []
useable_ap.forEach(ap => {
const v = get_effect(value, ap)
if (
!key.includes("BooyahBombChargeRateAutoPerFrame") &&
!key.includes("OpInk_DamagePerFrame") &&
(key.includes("Frm") || key.includes("Frame") || key.includes("HP"))
) {
new_data.push({
AP: ap,
Value: Math.ceil(v[0]),
Effect: (v[1] * 100).toPrecision(4),
})
} else {
new_data.push({
AP: ap,
Value: v[0].toPrecision(4),
Effect: (v[1] * 100).toPrecision(4),
})
}
})
$(`#${key}-table`).bootstrapTable("refreshOptions", {
data: new_data,
})
}
function translate_object_shredder_key(key) {
switch (key) {
case "Bomb_TorpedoBullet":
return "Torpedo"
case "Chariot":
case "ShockSonar":
return localize("CommonMsg/Weapon/WeaponName_Special", "Sp" + key)
case "CoopEnemySakeTamaire":
return "Mudmouth"
case "Gachihoko_Barrier":
return "Rainmaker Shield"
case "GreatBarrier_Barrier":
return "Big Bubbler Shield"
case "GreatBarrier_WeakPoint":
return "Big Bubbler Weak Point"
case "NiceBall_Armor":
return "Booyah Bomb Armor"
case "Sponge_Versus":
return "Sponge"
case "Wsb_Flag":
return localize("CommonMsg/Weapon/WeaponName_Sub", "Beacon")
case "Wsb_Shield":
case "Wsb_Sprinkler":
return localize("CommonMsg/Weapon/WeaponName_Sub", key.substring(4))
default:
return key
}
}
const weapon_param = name => `${prefix}data/parameter/${version}/weapon/${name}.game__GameParameterTable.json`
function load_data() {
$.getJSON(prefix + "data/language/EUen.json", d => {
for (const [key, value] of Object.entries(d)) {
lang_dict[key] = value
}
$.getJSON(misc_url(version, "params"), data_dict => {
$.getJSON(misc_url(version, "SplPlayer.game__GameParameterTable"), gameParamTable => {
const c = gameParamTable.GameParameters.spl__PlayerGearSkillParam_ActionSpecUp_Squid
data_dict.WallJumpChargeFrm = [c.WallJumpChargeFrm_High, c.WallJumpChargeFrm_Mid, c.WallJumpChargeFrm_Low]
for (const [v, k] of Object.entries(data_dict)) {
add_ability_table(v, k)
}
add_ability_table("ReduceJumpSwerveRate-Blaster", [1.0, 0.5, 0.0])
const multiplier = [
gameParamTable.GameParameters.spl__PlayerBeaconSubSpecUpParam.SubSpecUpParam.High,
gameParamTable.GameParameters.spl__PlayerBeaconSubSpecUpParam.SubSpecUpParam.Mid,
0,
]
const rows = []
useable_ap.forEach(ap => {
const v7 =
((multiplier[1] - multiplier[2]) / multiplier[0] - 17.8 / multiplier[0]) /
((17.8 / multiplier[0]) * (17.8 / multiplier[0] + -1.0))
const v8 = (ap / multiplier[0]) * ((ap / multiplier[0]) * v7 + (1.0 - v7))
const v9 = Math.floor(multiplier[2] + (multiplier[0] - multiplier[2]) * v8)
const v = get_effect(data_dict.SuperJump_ChargeFrm, v9)
rows.push({
AP: ap,
Value: v9,
})
})
$("#BeakonJumpFrame-table").bootstrapTable("refreshOptions", {
data: rows,
})
})
$.getJSON(weapon_param("WeaponBombCurling"), val => {
add_ability_table("CurlingZSpecUp", [
val.GameParameters.MoveParam.SpawnSpeedZSpecUp.High,
val.GameParameters.MoveParam.SpawnSpeedZSpecUp.Mid,
val.GameParameters.MoveParam.SpawnSpeedZSpecUp.Low,
])
})
$.getJSON(weapon_param("WeaponBombFizzy"), val => {
add_ability_table("FizzyZSpecUp", [
val.GameParameters.MoveParam.SpawnSpeedZSpecUp.High,
val.GameParameters.MoveParam.SpawnSpeedZSpecUp.Mid,
val.GameParameters.MoveParam.SpawnSpeedZSpecUp.Low,
])
})
$.getJSON(weapon_param("WeaponBombQuick"), val => {
add_ability_table("BurstZSpecUp", [
val.GameParameters.MoveParam.SpawnSpeedZSpecUp.High,
val.GameParameters.MoveParam.SpawnSpeedZSpecUp.Mid,
val.GameParameters.MoveParam.SpawnSpeedZSpecUp.Low,
])
})
$.getJSON(weapon_param("WeaponBombRobot"), val => {
add_ability_table("AutoZSpecUp", [
val.GameParameters.MoveParam.SpawnSpeedZSpecUp.High,
val.GameParameters.MoveParam.SpawnSpeedZSpecUp.Mid,
val.GameParameters.MoveParam.SpawnSpeedZSpecUp.Low,
])
})
$.getJSON(weapon_param("WeaponBombSplash"), val => {
add_ability_table("SplatZSpecUp", [
val.GameParameters.MoveParam.SpawnSpeedZSpecUp.High,
val.GameParameters.MoveParam.SpawnSpeedZSpecUp.Mid,
val.GameParameters.MoveParam.SpawnSpeedZSpecUp.Low,
])
})
$.getJSON(weapon_param("WeaponBombSuction"), val => {
add_ability_table("SuctionZSpecUp", [
val.GameParameters.MoveParam.SpawnSpeedZSpecUp.High,
val.GameParameters.MoveParam.SpawnSpeedZSpecUp.Mid,
val.GameParameters.MoveParam.SpawnSpeedZSpecUp.Low,
])
})
$.getJSON(weapon_param("WeaponBombTorpedo"), val => {
add_ability_table("TorpedoZSpecUp", [
val.GameParameters.MoveParam.SpawnSpeedZSpecUp.High,
val.GameParameters.MoveParam.SpawnSpeedZSpecUp.Mid,
val.GameParameters.MoveParam.SpawnSpeedZSpecUp.Low,
])
})
$.getJSON(weapon_param("WeaponLineMarker"), val => {
add_ability_table("AngleZSpecUp", [
val.GameParameters.MoveParam.SpawnSpeedZSpecUp.High,
val.GameParameters.MoveParam.SpawnSpeedZSpecUp.Mid,
val.GameParameters.MoveParam.SpawnSpeedZSpecUp.Low,
])
add_ability_table("AngleMarkingFrm", [
val.GameParameters.MoveParam.MarkingFrame.High,
val.GameParameters.MoveParam.MarkingFrame.Mid,
val.GameParameters.MoveParam.MarkingFrame.Low,
])
})
$.getJSON(weapon_param("WeaponPointSensor"), val => {
add_ability_table("PointSensorZSpecUp", [
val.GameParameters.MoveParam.SpawnSpeedZSpecUp.High,
val.GameParameters.MoveParam.SpawnSpeedZSpecUp.Mid,
val.GameParameters.MoveParam.SpawnSpeedZSpecUp.Low,
])
add_ability_table("PointSensorMarkingFrm", [
val.GameParameters.MoveParam.MarkingFrameSubSpec.High,
val.GameParameters.MoveParam.MarkingFrameSubSpec.Mid,
val.GameParameters.MoveParam.MarkingFrameSubSpec.Low,
])
})
$.getJSON(weapon_param("WeaponPoisonMist"), val => {
add_ability_table("ToxicMistZSpecUp", [
val.GameParameters.MoveParam.SpawnSpeedZSpecUp.High,
val.GameParameters.MoveParam.SpawnSpeedZSpecUp.Mid,
val.GameParameters.MoveParam.SpawnSpeedZSpecUp.Low,
])
})
$.getJSON(weapon_param("WeaponShield"), val => {
add_ability_table("SplashWallMaxHP", [
val.GameParameters.MoveParam.MaxHP.High,
val.GameParameters.MoveParam.MaxHP.Mid,
val.GameParameters.MoveParam.MaxHP.Low,
])
})
$.getJSON(weapon_param("WeaponSprinkler"), val => {
add_ability_table("SprinklerFirstFrm", [
val.GameParameters.MoveParam.PeriodFirst.High,
val.GameParameters.MoveParam.PeriodFirst.Mid,
val.GameParameters.MoveParam.PeriodFirst.Low,
])
add_ability_table("SprinklerSecondFrm", [
val.GameParameters.MoveParam.PeriodSecond.High,
val.GameParameters.MoveParam.PeriodSecond.Mid,
val.GameParameters.MoveParam.PeriodSecond.Low,
])
})
$.getJSON(weapon_param("WeaponTrap"), val => {
add_ability_table("MineDistance", [
val.GameParameters.AreaParam.Distance.High,
val.GameParameters.AreaParam.Distance.Mid,
val.GameParameters.AreaParam.Distance.Low,
])
add_ability_table("MineMarkingFrm", [
val.GameParameters.AreaParam.MarkingFrameSubSpec.High,
val.GameParameters.AreaParam.MarkingFrameSubSpec.Mid,
val.GameParameters.AreaParam.MarkingFrameSubSpec.Low,
])
add_ability_table("MineSensorRadius", [
val.GameParameters.MoveParam.SensorRadius.High,
val.GameParameters.MoveParam.SensorRadius.Mid,
val.GameParameters.MoveParam.SensorRadius.Low,
])
add_ability_table("MineDistanceDamageDistanceRate", [
val.GameParameters.BlastParam.SubSpecialSpecUpList[0].Value.High,
val.GameParameters.BlastParam.SubSpecialSpecUpList[0].Value.Mid,
val.GameParameters.BlastParam.SubSpecialSpecUpList[0].Value.Low,
])
})
$.getJSON(weapon_param("WeaponSpBlower"), val => {
add_ability_table("InkVacRadiusMax", [
val.GameParameters.InhaleParam.RadiusMax.High,
val.GameParameters.InhaleParam.RadiusMax.Mid,
val.GameParameters.InhaleParam.RadiusMax.Low,
])
add_ability_table("InkVacRadiusMin", [
val.GameParameters.InhaleParam.RadiusMin.High,
val.GameParameters.InhaleParam.RadiusMin.Mid,
val.GameParameters.InhaleParam.RadiusMin.Low,
])
})
$.getJSON(weapon_param("WeaponSpChariot"), val => {
add_ability_table("CrabTankSpecialTotalFrame", [
val.GameParameters.WeaponSpChariotParam.SpecialTotalFrame.High,
val.GameParameters.WeaponSpChariotParam.SpecialTotalFrame.Mid,
val.GameParameters.WeaponSpChariotParam.SpecialTotalFrame.Low,
])
})
$.getJSON(weapon_param("WeaponSpEnergyStand"), val => {
add_ability_table("TacticoolerPowerUpFrame", [
val.GameParameters.FridgeParam.PowerUpFrame.High,
val.GameParameters.FridgeParam.PowerUpFrame.Mid,
val.GameParameters.FridgeParam.PowerUpFrame.Low,
])
})
$.getJSON(weapon_param("WeaponSpGreatBarrier"), val => {
add_ability_table("BigBubblerMaxFieldHP", [
val.GameParameters.spl__BulletSpGreatBarrierMoveParam.BarrierParam.MaxFieldHP.High,
val.GameParameters.spl__BulletSpGreatBarrierMoveParam.BarrierParam.MaxFieldHP.Mid,
val.GameParameters.spl__BulletSpGreatBarrierMoveParam.BarrierParam.MaxFieldHP.Low,
])
add_ability_table("BigBubblerMaxHP", [
val.GameParameters.spl__BulletSpGreatBarrierMoveParam.BarrierParam.MaxHP.High,
val.GameParameters.spl__BulletSpGreatBarrierMoveParam.BarrierParam.MaxHP.Mid,
val.GameParameters.spl__BulletSpGreatBarrierMoveParam.BarrierParam.MaxHP.Low,
])
})
$.getJSON(weapon_param("WeaponSpInkStorm"), val => {
add_ability_table("InkStormRainyFrame", [
val.GameParameters.CloudParam.RainyFrame.High,
val.GameParameters.CloudParam.RainyFrame.Mid,
val.GameParameters.CloudParam.RainyFrame.Low,
])
add_ability_table("InkStormSpawnSpeedZSpecUp", [
val.GameParameters.MoveParam.SpawnSpeedZSpecUp.High,
val.GameParameters.MoveParam.SpawnSpeedZSpecUp.Mid,
val.GameParameters.MoveParam.SpawnSpeedZSpecUp.Low,
])
})
$.getJSON(weapon_param("WeaponSpJetpack"), val => {
add_ability_table("InkjetSpecialTotalFrame", [
val.GameParameters.WeaponParam.SpecialTotalFrame.High,
val.GameParameters.WeaponParam.SpecialTotalFrame.Mid,
val.GameParameters.WeaponParam.SpecialTotalFrame.Low,
])
add_ability_table("InkjetBurstPaintRadius", [
val.GameParameters.BlastParam.SubSpecialSpecUpList[0].Value.High,
val.GameParameters.BlastParam.SubSpecialSpecUpList[0].Value.Mid,
val.GameParameters.BlastParam.SubSpecialSpecUpList[0].Value.Low,
])
add_ability_table("InkjetDistanceDamageDistanceRate", [
val.GameParameters.BlastParam.SubSpecialSpecUpList[1].Value.High,
val.GameParameters.BlastParam.SubSpecialSpecUpList[1].Value.Mid,
val.GameParameters.BlastParam.SubSpecialSpecUpList[1].Value.Low,
])
add_ability_table("InkjetSplashAroundVelocityMin", [
val.GameParameters.BlastParam.SubSpecialSpecUpList[2].Value.High,
val.GameParameters.BlastParam.SubSpecialSpecUpList[2].Value.Mid,
val.GameParameters.BlastParam.SubSpecialSpecUpList[2].Value.Low,
])
add_ability_table("InkjetSplashAroundVelocityMax", [
val.GameParameters.BlastParam.SubSpecialSpecUpList[3].Value.High,
val.GameParameters.BlastParam.SubSpecialSpecUpList[3].Value.Mid,
val.GameParameters.BlastParam.SubSpecialSpecUpList[3].Value.Low,
])
add_ability_table("InkjetSplashAroundPaintRadius", [
val.GameParameters.BlastParam.SubSpecialSpecUpList[4].Value.High,
val.GameParameters.BlastParam.SubSpecialSpecUpList[4].Value.Mid,
val.GameParameters.BlastParam.SubSpecialSpecUpList[4].Value.Low,
])
})
$.getJSON(weapon_param("WeaponSpMicroLaser"), val => {
add_ability_table("KillerWailLaserFrame", [
val.GameParameters.spl__BulletSpMicroLaserBitParam.LaserParam.LaserFrame.High,
val.GameParameters.spl__BulletSpMicroLaserBitParam.LaserParam.LaserFrame.Mid,
val.GameParameters.spl__BulletSpMicroLaserBitParam.LaserParam.LaserFrame.Low,
])
})
$.getJSON(weapon_param("WeaponSpMultiMissile"), val => {
add_ability_table("TentaMissilesTargetIncircleRadius", [
val.GameParameters.spl__WeaponSpMultiMissileLockOnParam.TargetInCircleRadius.High,
val.GameParameters.spl__WeaponSpMultiMissileLockOnParam.TargetInCircleRadius.Mid,
val.GameParameters.spl__WeaponSpMultiMissileLockOnParam.TargetInCircleRadius.Low,
])
add_ability_table("TentaMissilesBurstPaintRadius", [
val.GameParameters.spl__BulletBlastParam.SubSpecialSpecUpList[0].Value.High,
val.GameParameters.spl__BulletBlastParam.SubSpecialSpecUpList[0].Value.Mid,
val.GameParameters.spl__BulletBlastParam.SubSpecialSpecUpList[0].Value.Low,
])
})
$.getJSON(weapon_param("WeaponSpNiceBall"), val => {
add_ability_table("BooyahBombChargeRateAutoPerFrame", [
val.GameParameters.WeaponParam.ChargeRateAutoPerFrame.High,
val.GameParameters.WeaponParam.ChargeRateAutoPerFrame.Mid,
val.GameParameters.WeaponParam.ChargeRateAutoPerFrame.Low,
])
})
$.getJSON(weapon_param("WeaponSpShockSonar"), val => {
add_ability_table("WaveBreakerMaxFrame", [
val.GameParameters.spl__BulletSpShockSonarParam.WaveParam.MaxFrame.High,
val.GameParameters.spl__BulletSpShockSonarParam.WaveParam.MaxFrame.Mid,
val.GameParameters.spl__BulletSpShockSonarParam.WaveParam.MaxFrame.Low,
])
add_ability_table("WaveBreakerMaxRadius", [
val.GameParameters.spl__BulletSpShockSonarParam.WaveParam.MaxRadius.High,
val.GameParameters.spl__BulletSpShockSonarParam.WaveParam.MaxRadius.Mid,
val.GameParameters.spl__BulletSpShockSonarParam.WaveParam.MaxRadius.Low,
])
})
$.getJSON(weapon_param("WeaponSpSkewer"), val => {
add_ability_table("ReefsliderDistanceDamageDistanceRate", [
val.GameParameters.BulletBlastParam.SubSpecialSpecUpList[0].Value.High,
val.GameParameters.BulletBlastParam.SubSpecialSpecUpList[0].Value.Mid,
val.GameParameters.BulletBlastParam.SubSpecialSpecUpList[0].Value.Low,
])
add_ability_table("ReefsliderPaintRadius", [
val.GameParameters.BulletBlastParam.SubSpecialSpecUpList[1].Value.High,
val.GameParameters.BulletBlastParam.SubSpecialSpecUpList[1].Value.Mid,
val.GameParameters.BulletBlastParam.SubSpecialSpecUpList[1].Value.Low,
])
add_ability_table("ReefsliderSplashAroundVelocityMin", [
val.GameParameters.BulletBlastParam.SubSpecialSpecUpList[2].Value.High,
val.GameParameters.BulletBlastParam.SubSpecialSpecUpList[2].Value.Mid,
val.GameParameters.BulletBlastParam.SubSpecialSpecUpList[2].Value.Low,
])
add_ability_table("ReefsliderSplashAroundVelocityMax", [
val.GameParameters.BulletBlastParam.SubSpecialSpecUpList[3].Value.High,
val.GameParameters.BulletBlastParam.SubSpecialSpecUpList[3].Value.Mid,
val.GameParameters.BulletBlastParam.SubSpecialSpecUpList[3].Value.Low,
])
add_ability_table("ReefsliderSplashAroundPaintRadius", [
val.GameParameters.BulletBlastParam.SubSpecialSpecUpList[4].Value.High,
val.GameParameters.BulletBlastParam.SubSpecialSpecUpList[4].Value.Mid,
val.GameParameters.BulletBlastParam.SubSpecialSpecUpList[4].Value.Low,
])
})
$.getJSON(weapon_param("WeaponSpSuperHook"), val => {
add_ability_table("ZipcasterInkConsume_Hook", [
val.GameParameters.WeaponParam.InkConsume_Hook.High,
val.GameParameters.WeaponParam.InkConsume_Hook.Mid,
val.GameParameters.WeaponParam.InkConsume_Hook.Low,
])
add_ability_table("ZipcasterInkConsume_PerSec", [
val.GameParameters.WeaponParam.InkConsume_PerSec.High,
val.GameParameters.WeaponParam.InkConsume_PerSec.Mid,
val.GameParameters.WeaponParam.InkConsume_PerSec.Low,
])
})
$.getJSON(weapon_param("WeaponSpTripleTornado"), val => {
add_ability_table("TripleInkstrikeSpawnSpeedZSpecUp", [
val.GameParameters.MoveParam.SpawnSpeedZSpecUp.High,
val.GameParameters.MoveParam.SpawnSpeedZSpecUp.Mid,
val.GameParameters.MoveParam.SpawnSpeedZSpecUp.Low,
])
})
$.getJSON(weapon_param("WeaponSpUltraShot"), val => {
add_ability_table("TrizookaSpecialDurationFrame", [
val.GameParameters.spl__WeaponSpUltraShotParam.SpecialDurationFrame.High,
val.GameParameters.spl__WeaponSpUltraShotParam.SpecialDurationFrame.Mid,
val.GameParameters.spl__WeaponSpUltraShotParam.SpecialDurationFrame.Low,
])
add_ability_table("TrizookaPaintRadius", [
val.GameParameters.BlastParam.SubSpecialSpecUpList[0].Value.High,
val.GameParameters.BlastParam.SubSpecialSpecUpList[0].Value.Mid,
val.GameParameters.BlastParam.SubSpecialSpecUpList[0].Value.Low,
])
add_ability_table("TrizookaDistanceDamageDistanceRate", [
val.GameParameters.BlastParam.SubSpecialSpecUpList[1].Value.High,
val.GameParameters.BlastParam.SubSpecialSpecUpList[1].Value.Mid,
val.GameParameters.BlastParam.SubSpecialSpecUpList[1].Value.Low,
])
})
$.getJSON(weapon_param("WeaponSpUltraStamp"), val => {
/*add_ability_table("UltraStampSpawnSpeedZSpecUp", [
val.GameParameters.ThrowMoveParam.SpawnSpeedZSpecUp.High,
val.GameParameters.ThrowMoveParam.SpawnSpeedZSpecUp.Mid,
val.GameParameters.ThrowMoveParam.SpawnSpeedZSpecUp.Low,
])*/
add_ability_table("UltraStampSpecialDurationFrame", [
val.GameParameters.spl__WeaponSpUltraStampParam.SpecialTotalFrame.High,
val.GameParameters.spl__WeaponSpUltraStampParam.SpecialTotalFrame.Mid,
val.GameParameters.spl__WeaponSpUltraStampParam.SpecialTotalFrame.Low,
])
})
})
$.getJSON(misc_url(version, "spl__DamageRateInfoConfig.pp__CombinationDataTableData"), dmg_table => {
const res = []
for (const [key, val] of Object.entries(dmg_table.CellList)) {
if (val.RowKey === "ObjectEffect_Up" && val.DamageRate !== undefined && val.DamageRate > 1.0) {
res.push({
ColumnKey: translate_object_shredder_key(val.ColumnKey),
DamageRate: val.DamageRate,
})
}
}
$("#ObjectEffect_Up-table").bootstrapTable("refreshOptions", {
data: res,
})
})
})
{
const new_data = []
const min = 50
const max = 30
for (var i = min; i >= max; i--) {
const v = Math.min(1.0, (min + 1 - i) / (min + 1 - max))
if (version < 500) {
new_data.push({
AP: Math.floor(24 * v),
Score: i,
})
} else {
new_data.push({
AP: Math.floor(18 * v),
Score: i,
})
}
}
$("#EndAllUp-table").bootstrapTable("refreshOptions", {
data: new_data,
})
}
}
function create_tab(val) {
add_tab(val, format_img(`${get_prefix()}images/skill/`, val, 64))
$(`#${val}`).append(
`<div class="AbilityIntro"><h1>${localize("CommonMsg/Gear/GearPowerName", val)}</h1><br />${localize(
"CommonMsg/Gear/GearPowerExp",
val
)}</div>`
)
}
function create_table(tab, val) {
add_table(
tab,
`${val}-table`,
[
{ Field: "AP", Label: "AP" },
{ Field: "Value", Label: "Value" },
{ Field: "Effect", Label: "Effect%" },
],
translate_title(val)
)
}
function translate_title(val) {
switch (val) {
case "ConsumeRt_Main":
return "Consumption Rate Main"
case "ConsumeRt_Sub_Lv0":
return "Consumption Rate Sub Level 0"
case "ConsumeRt_Sub_Lv1":
return "Consumption Rate Sub Level 1"
case "ConsumeRt_Sub_Lv2":
return "Consumption Rate Sub Level 2"
case "ConsumeRt_Sub_Lv3":
return "Consumption Rate Sub Level 3"
case "DamageRt_BombH":
return "Damage Rate - BombH"
case "DamageRt_BombL":
return "Damage Rate - BombL"
case "DamageRt_LineMarker":
return "Damage Rate - Angle Shooter"
case "DamageRt_Shield":
return "Damage Rate - Splash Wall"
case "DamageRt_Sprinkler":
return "Damage Rate - Sprinkler"
case "Dying_AroundFrm":
return "Respawn Frames - Your Camera"
case "Dying_ChaseFrm":
return "Respawn Frames - Killer Camera"
case "IncreaseRt_Special":
return "Increase Rate - Special"
case "InkRecoverFrm_Std":
return "Ink Recovery Frames - Standing"
case "InkRecoverFrm_Stealth":
return "Ink Recovery Frames - Swimming"
case "MarkingTimeRt":
return "Marking Time Rate"
case "MarkingTimeRt_Trap":
return "Marking Time Rate - Ink Mines"
case "MoveDownRt_PoisonMist":
return "Move Down Rate - Toxic Mist"
case "MoveVelRt_Shot":
return "Move Velocity Rate - Shooting"
case "MoveVel_Human":
return "Move Velocity - Normal"
case "MoveVel_Human_Fast":
return "Move Velocity - Light"
case "MoveVel_Human_Slow":
return "Move Velocity - Heavy"
case "MoveVel_Stealth":
return "Swim Velocity - Normal"
case "MoveVel_Stealth_Fast":
return "Swim Velocity - Light"
case "MoveVel_Stealth_Slow":
return "Swim Velocity - Heavy"
case "OpInk_ArmorHP":
return "Opponent Ink - Armor HP"
case "OpInk_DamageLmt":
return "Opponent Ink - Damage Limit"
case "OpInk_DamagePerFrame":
return "Opponent Ink - Damage Per Frame"
case "OpInk_JumpVel":
return "Opponent Ink - Jump Velocity"
case "OpInk_MoveVel":
return "Opponent Ink - Move Velocity"
case "OpInk_MoveVel_Shot":
return "Opponent Ink - Move Velocity Shooting"
case "OpInk_MoveVel_ShotK":
return "Opponent Ink - Move Velocity ShootingK"
case "Somersault_MoveVelKd":
return "Squid Surge - Move Velocity Kd"
case "SpecialGaugeRt_Restart":
return "Special Gauge Rate After Respawn"
case "SuperJump_ChargeFrm":
return "Super Jump Charge Frame"
case "SuperJump_MoveFrm":
return "Super Jump Move Frame"
case "WallJumpChargeFrm":
return "Wall Jump Charge Frame"
case "ReduceJumpSwerveRate":
return "Reduce Jump Swerve Rate"
case "ReduceJumpSwerveRate-Blaster":
return "Reduce Jump Swerve Rate - Blaster"
case "BeakonJumpFrame":
return "Jump Time to Beacon"
case "CurlingZSpecUp":
return "Curling Bomb Throw Speed"
case "FizzyZSpecUp":
return "Fizzy Bomb Throw Speed"
case "BurstZSpecUp":
return "Burst Bomb Throw Speed"
case "AutoZSpecUp":
return "Auto Bomb Throw Speed"
case "SplatZSpecUp":
return "Splat Bomb Throw Speed"
case "SuctionZSpecUp":
return "Suction Bomb Throw Speed"
case "TorpedoZSpecUp":
return "Torpedo Bomb Throw Speed"
case "AngleZSpecUp":
return "Angle Shooter Throw Speed"
case "PointSensorZSpecUp":
return "Point Sensor Throw Speed"
case "ToxicMistZSpecUp":
return "Toxic Mist Throw Speed"
case "AngleMarkingFrm":
return "Angle Shooter Marking Duration"
case "PointSensorMarkingFrm":
return "Point Sensor Marking Duration"
case "SplashWallMaxHP":
return "Splash Wall Maximum HP"
case "SprinklerFirstFrm":
return "Sprinkler Duration First Phase"
case "SprinklerSecondFrm":
return "Sprinkler Duration Second Phase"
case "MineDistance":
return "Ink Mine Detection Redius"
case "MineMarkingFrm":
return "Ink Mines Marking Duration"
case "MineSensorRadius":
return "Ink Mines Sensor Radius"
case "MineDistanceDamageDistanceRate":
return "Distance Damage Distance Rate"
case "InkVacRadiusMin":
return "Ink Vac Minimum Radius"
case "InkVacRadiusMax":
return "Ink Vac Maximum Radius"
case "CrabTankSpecialTotalFrame":
return "Crab Tank Total Duration"
case "TacticoolerPowerUpFrame":
return "Tacticooler Power Up Duration"
case "BigBubblerMaxFieldHP":
return "Big Bubbler Max Field HP"
case "BigBubblerMaxHP":
return "Big Bubbler Max HP"
case "InkStormRainyFrame":
return "Ink Storm Rain Duration"
case "InkStormSpawnSpeedZSpecUp":
return "Ink Storm Throw Speed"
case "InkjetSpecialTotalFrame":
return "Inkjet Total Duration"
case "InkjetBurstPaintRadius":
return "Inkjet Burst Paint Radius"
case "InkjetDistanceDamageDistanceRate":
return "Inkjet Distance Damage Distance Rate"
case "InkjetSplashAroundVelocityMin":
return "Inkjet Splash Around Velocity Minimum"
case "InkjetSplashAroundVelocityMax":
return "Inkjet Splash Around Velocity Maximum"
case "InkjetSplashAroundPaintRadius":
return "Inkjet Splash Around Paint Radius"
case "KillerWailLaserFrame":
return "Killer Wail 5.1 Laser Duration"
case "TentaMissilesTargetIncircleRadius":
return "Tenta Missiles Target In Circle Radius"
case "TentaMissilesBurstPaintRadius":
return "Tenta Missiles Burst Paint Radius"
case "BooyahBombChargeRateAutoPerFrame":
return "Booyah Bomb Auto Charge Rate Per Frame"
case "WaveBreakerMaxFrame":
return "Wave Breaker Maximum Duration"
case "WaveBreakerMaxRadius":
return "Wave Breaker Maximum Radius"
case "ReefsliderDistanceDamageDistanceRate":
return "Reefslider Distance Damage Distance Rate"
case "ReefsliderPaintRadius":
return "Reefslider Paint Radius"
case "ReefsliderSplashAroundVelocityMin":
return "Reefslider Splash Around Velocity Minimum"
case "ReefsliderSplashAroundVelocityMax":
return "Reefslider Splash Around Velocity Maximum"
case "ReefsliderSplashAroundPaintRadius":
return "Reefslider Splash Around Paint Radius"
case "ZipcasterInkConsume_Hook":
return "Zipcaster Ink Consumption Per Hook"
case "ZipcasterInkConsume_PerSec":
return "Zipcaster Ink Consumption Per Second"