fleethub-core 1.7.1 → 1.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node/fleethub_core.d.ts +208 -233
- package/node/fleethub_core.js +141 -210
- package/node/fleethub_core_bg.wasm +0 -0
- package/node/fleethub_core_bg.wasm.d.ts +6 -3
- package/package.json +1 -1
- package/pkg/fleethub_core.d.ts +208 -233
- package/pkg/fleethub_core_bg.js +142 -211
- package/pkg/fleethub_core_bg.wasm +0 -0
- package/pkg/fleethub_core_bg.wasm.d.ts +6 -3
package/node/fleethub_core.d.ts
CHANGED
|
@@ -54,16 +54,43 @@ export type DayCutin =
|
|
|
54
54
|
| "Zuiun"
|
|
55
55
|
| "AirSea";
|
|
56
56
|
|
|
57
|
-
export
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
57
|
+
export type ShellingAttackType = "Normal" | "Carrier";
|
|
58
|
+
|
|
59
|
+
export interface FleetCutinAnalysis {
|
|
60
|
+
shelling: FleetCutinInfo[];
|
|
61
|
+
night: FleetCutinInfo[];
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
export
|
|
64
|
+
export interface FleetCutinInfo {
|
|
65
|
+
cutin: FleetCutin;
|
|
66
|
+
rate: number | null;
|
|
67
|
+
formation: Formation;
|
|
68
|
+
items: FleetCutinInfoItem[];
|
|
69
|
+
}
|
|
65
70
|
|
|
66
|
-
export
|
|
71
|
+
export interface FleetCutinInfoItem {
|
|
72
|
+
ship_id: number;
|
|
73
|
+
cutin: FleetCutin;
|
|
74
|
+
fleet_cutin_mod: number;
|
|
75
|
+
stats: AttackStats;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export type SpecialEnemyType =
|
|
79
|
+
| "None"
|
|
80
|
+
| "SoftSkinned"
|
|
81
|
+
| "Pillbox"
|
|
82
|
+
| "IsolatedIsland"
|
|
83
|
+
| "SupplyDepot"
|
|
84
|
+
| "HarbourSummerPrincess"
|
|
85
|
+
| "PtImp"
|
|
86
|
+
| "BattleshipSummerPrincess"
|
|
87
|
+
| "HeavyCruiserSummerPrincess";
|
|
88
|
+
|
|
89
|
+
export type MoraleState = "Sparkle" | "Normal" | "Orange" | "Red";
|
|
90
|
+
|
|
91
|
+
export type DamageState = "Normal" | "Shouha" | "Chuuha" | "Taiha" | "Sunk";
|
|
92
|
+
|
|
93
|
+
export type SpeedGroup = "A" | "B1" | "B2" | "C";
|
|
67
94
|
|
|
68
95
|
export type AswAttackType = "DepthCharge" | "Aircraft";
|
|
69
96
|
|
|
@@ -83,22 +110,9 @@ export type FleetCutin =
|
|
|
83
110
|
| "Yamato2ShipCutin"
|
|
84
111
|
| "Yamato3ShipCutin";
|
|
85
112
|
|
|
86
|
-
export
|
|
87
|
-
attacker_env: WarfareShipEnvironment;
|
|
88
|
-
target_env: WarfareShipEnvironment;
|
|
89
|
-
engagement: Engagement;
|
|
90
|
-
air_state: AirState;
|
|
91
|
-
custom_mods: CustomModifiers;
|
|
92
|
-
}
|
|
113
|
+
export type AirWaveType = "Jet" | "LandBase" | "Carrier";
|
|
93
114
|
|
|
94
|
-
export
|
|
95
|
-
org_type: OrgType;
|
|
96
|
-
role: Role;
|
|
97
|
-
ship_index: number;
|
|
98
|
-
fleet_len: number;
|
|
99
|
-
formation: Formation;
|
|
100
|
-
fleet_los_mod: number | null;
|
|
101
|
-
}
|
|
115
|
+
export type NumMap<K, V> = Partial<Record<K, V>>;
|
|
102
116
|
|
|
103
117
|
export type Role = "Main" | "Escort";
|
|
104
118
|
|
|
@@ -117,52 +131,6 @@ export interface ShipMeta {
|
|
|
117
131
|
ship_id: number;
|
|
118
132
|
}
|
|
119
133
|
|
|
120
|
-
export interface AttackPower {
|
|
121
|
-
precap: number;
|
|
122
|
-
is_capped: boolean;
|
|
123
|
-
capped: number;
|
|
124
|
-
normal: number;
|
|
125
|
-
critical: number;
|
|
126
|
-
armor_penetration: number;
|
|
127
|
-
remaining_ammo_mod: number;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
export interface AttackPowerParams {
|
|
131
|
-
basic: number;
|
|
132
|
-
cap: number;
|
|
133
|
-
precap_mod: AttackPowerModifier;
|
|
134
|
-
postcap_mod: AttackPowerModifier;
|
|
135
|
-
ap_shell_mod: number | null;
|
|
136
|
-
carrier_power: number | null;
|
|
137
|
-
proficiency_critical_mod: number | null;
|
|
138
|
-
armor_penetration: number;
|
|
139
|
-
remaining_ammo_mod: number;
|
|
140
|
-
special_enemy_mods: SpecialEnemyModifiers;
|
|
141
|
-
custom_mods: CustomModifiers;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
export interface CustomModifiers {
|
|
145
|
-
precap_mod?: AttackPowerModifier;
|
|
146
|
-
postcap_mod?: AttackPowerModifier;
|
|
147
|
-
basic_power_mod?: AttackPowerModifier;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
export interface SpecialEnemyModifiers {
|
|
151
|
-
precap_general_mod: AttackPowerModifier;
|
|
152
|
-
stype_mod: AttackPowerModifier;
|
|
153
|
-
landing_craft_synergy_mod: AttackPowerModifier;
|
|
154
|
-
toku_daihatsu_tank_mod: AttackPowerModifier;
|
|
155
|
-
m4a1dd_mod: AttackPowerModifier;
|
|
156
|
-
honi_mod: AttackPowerModifier;
|
|
157
|
-
postcap_general_mod: AttackPowerModifier;
|
|
158
|
-
pt_mod: AttackPowerModifier;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
export interface AttackPowerModifier {
|
|
162
|
-
a: number;
|
|
163
|
-
b: number;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
134
|
export interface MasterData {
|
|
167
135
|
gears: MasterGear[];
|
|
168
136
|
gear_attrs: MasterAttrRule<GearAttr>[];
|
|
@@ -189,6 +157,22 @@ export interface MasterAttrRule<T> {
|
|
|
189
157
|
expr: string;
|
|
190
158
|
}
|
|
191
159
|
|
|
160
|
+
export interface WarfareContext {
|
|
161
|
+
attacker_env: WarfareShipEnvironment;
|
|
162
|
+
target_env: WarfareShipEnvironment;
|
|
163
|
+
engagement: Engagement;
|
|
164
|
+
air_state: AirState;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export interface WarfareShipEnvironment {
|
|
168
|
+
org_type: OrgType;
|
|
169
|
+
role: Role;
|
|
170
|
+
ship_index: number;
|
|
171
|
+
fleet_len: number;
|
|
172
|
+
formation: Formation;
|
|
173
|
+
fleet_los_mod: number | null;
|
|
174
|
+
}
|
|
175
|
+
|
|
192
176
|
export interface CompDayCutinRateInfo {
|
|
193
177
|
main: FleetDayCutinRateInfo;
|
|
194
178
|
escort: FleetDayCutinRateInfo | null;
|
|
@@ -211,8 +195,6 @@ export interface DayCutinRateInfo {
|
|
|
211
195
|
total_cutin_rate: number | null;
|
|
212
196
|
}
|
|
213
197
|
|
|
214
|
-
export type NumMap<K, V> = Partial<Record<K, V>>;
|
|
215
|
-
|
|
216
198
|
export type GearCategory =
|
|
217
199
|
| "Fighter"
|
|
218
200
|
| "Bomber"
|
|
@@ -339,6 +321,12 @@ export type AirState =
|
|
|
339
321
|
| "AirDenial"
|
|
340
322
|
| "AirIncapability";
|
|
341
323
|
|
|
324
|
+
export interface ShellingSupportSimulatorParams {
|
|
325
|
+
attacker_formation: Formation;
|
|
326
|
+
target_formation: Formation;
|
|
327
|
+
engagement: Engagement;
|
|
328
|
+
}
|
|
329
|
+
|
|
342
330
|
export interface MasterIBonuses {
|
|
343
331
|
shelling_power: MasterIBonusRule[];
|
|
344
332
|
carrier_shelling_power: MasterIBonusRule[];
|
|
@@ -369,25 +357,6 @@ export interface NightSituation {
|
|
|
369
357
|
searchlight: boolean;
|
|
370
358
|
}
|
|
371
359
|
|
|
372
|
-
export interface FleetCutinAnalysis {
|
|
373
|
-
shelling: FleetCutinInfo[];
|
|
374
|
-
night: FleetCutinInfo[];
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
export interface FleetCutinInfo {
|
|
378
|
-
cutin: FleetCutin;
|
|
379
|
-
rate: number | null;
|
|
380
|
-
formation: Formation;
|
|
381
|
-
items: FleetCutinInfoItem[];
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
export interface FleetCutinInfoItem {
|
|
385
|
-
ship_id: number;
|
|
386
|
-
cutin: FleetCutin;
|
|
387
|
-
fleet_cutin_mod: number;
|
|
388
|
-
stats: AttackStats;
|
|
389
|
-
}
|
|
390
|
-
|
|
391
360
|
export interface DamageInfo {
|
|
392
361
|
miss_damage_min: number;
|
|
393
362
|
miss_damage_max: number;
|
|
@@ -433,7 +402,62 @@ export type SingleFormation =
|
|
|
433
402
|
| "LineAbreast"
|
|
434
403
|
| "Vanguard";
|
|
435
404
|
|
|
436
|
-
export
|
|
405
|
+
export interface CustomPowerModifiers {
|
|
406
|
+
precap_mod?: AttackPowerModifier;
|
|
407
|
+
postcap_mod?: AttackPowerModifier;
|
|
408
|
+
basic_power_mod?: AttackPowerModifier;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
export interface SpecialEnemyModifiers {
|
|
412
|
+
precap_general_mod: AttackPowerModifier;
|
|
413
|
+
stype_mod: AttackPowerModifier;
|
|
414
|
+
landing_craft_synergy_mod: AttackPowerModifier;
|
|
415
|
+
toku_daihatsu_tank_mod: AttackPowerModifier;
|
|
416
|
+
m4a1dd_mod: AttackPowerModifier;
|
|
417
|
+
honi_mod: AttackPowerModifier;
|
|
418
|
+
postcap_general_mod: AttackPowerModifier;
|
|
419
|
+
pt_mod: AttackPowerModifier;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
export interface AttackPowerModifier {
|
|
423
|
+
a?: number;
|
|
424
|
+
b?: number;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
export interface AttackPower {
|
|
428
|
+
precap: number;
|
|
429
|
+
is_capped: boolean;
|
|
430
|
+
capped: number;
|
|
431
|
+
normal: number;
|
|
432
|
+
critical: number;
|
|
433
|
+
armor_penetration: number;
|
|
434
|
+
remaining_ammo_mod: number;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
export interface AttackPowerParams {
|
|
438
|
+
basic: number;
|
|
439
|
+
cap: number;
|
|
440
|
+
precap_mod: AttackPowerModifier;
|
|
441
|
+
postcap_mod: AttackPowerModifier;
|
|
442
|
+
ap_shell_mod: number | null;
|
|
443
|
+
carrier_power: number | null;
|
|
444
|
+
proficiency_critical_mod: number | null;
|
|
445
|
+
armor_penetration: number;
|
|
446
|
+
remaining_ammo_mod: number;
|
|
447
|
+
special_enemy_mods: SpecialEnemyModifiers;
|
|
448
|
+
custom_mods: CustomPowerModifiers;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
export interface SpecialEnemyModifiers {
|
|
452
|
+
precap_general_mod: AttackPowerModifier;
|
|
453
|
+
stype_mod: AttackPowerModifier;
|
|
454
|
+
landing_craft_synergy_mod: AttackPowerModifier;
|
|
455
|
+
toku_daihatsu_tank_mod: AttackPowerModifier;
|
|
456
|
+
m4a1dd_mod: AttackPowerModifier;
|
|
457
|
+
honi_mod: AttackPowerModifier;
|
|
458
|
+
postcap_general_mod: AttackPowerModifier;
|
|
459
|
+
pt_mod: AttackPowerModifier;
|
|
460
|
+
}
|
|
437
461
|
|
|
438
462
|
export interface CompAntiAirInfo {
|
|
439
463
|
fleet_adjusted_anti_air: number;
|
|
@@ -467,6 +491,8 @@ export interface AirstrikeContactChance {
|
|
|
467
491
|
|
|
468
492
|
export type SlotSizeVec = (number | null)[];
|
|
469
493
|
|
|
494
|
+
export type Side = "Player" | "Enemy";
|
|
495
|
+
|
|
470
496
|
export type GearAttr =
|
|
471
497
|
| "Unknown"
|
|
472
498
|
| "Abyssal"
|
|
@@ -498,30 +524,7 @@ export type GearAttr =
|
|
|
498
524
|
| "SemiNightPlane"
|
|
499
525
|
| "HighAltitudeInterceptor";
|
|
500
526
|
|
|
501
|
-
export
|
|
502
|
-
gear_id: number;
|
|
503
|
-
name: string;
|
|
504
|
-
types: GearTypeIdArray;
|
|
505
|
-
special_type?: number;
|
|
506
|
-
max_hp?: number;
|
|
507
|
-
firepower?: number;
|
|
508
|
-
armor?: number;
|
|
509
|
-
torpedo?: number;
|
|
510
|
-
anti_air?: number;
|
|
511
|
-
speed?: number;
|
|
512
|
-
bombing?: number;
|
|
513
|
-
asw?: number;
|
|
514
|
-
los?: number;
|
|
515
|
-
luck?: number;
|
|
516
|
-
accuracy?: number;
|
|
517
|
-
evasion?: number;
|
|
518
|
-
range?: number;
|
|
519
|
-
radius?: number;
|
|
520
|
-
cost?: number;
|
|
521
|
-
improvable?: boolean;
|
|
522
|
-
ship_anti_air_resistance?: number;
|
|
523
|
-
fleet_anti_air_resistance?: number;
|
|
524
|
-
}
|
|
527
|
+
export type FleetType = "Main" | "Escort" | "RouteSup" | "BossSup";
|
|
525
528
|
|
|
526
529
|
export interface MasterEquippable {
|
|
527
530
|
equip_stype: EquipStype[];
|
|
@@ -545,21 +548,6 @@ export interface EquipStype {
|
|
|
545
548
|
equip_type: number[];
|
|
546
549
|
}
|
|
547
550
|
|
|
548
|
-
export interface HitRate {
|
|
549
|
-
total: number;
|
|
550
|
-
normal: number;
|
|
551
|
-
critical: number;
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
export interface HitRateParams {
|
|
555
|
-
accuracy_term: number;
|
|
556
|
-
evasion_term: number;
|
|
557
|
-
target_morale_mod: number;
|
|
558
|
-
critical_rate_constant: number;
|
|
559
|
-
critical_percentage_bonus: number;
|
|
560
|
-
hit_percentage_bonus: number;
|
|
561
|
-
}
|
|
562
|
-
|
|
563
551
|
export type NightBattleAttackType =
|
|
564
552
|
| { t: "NightAttack"; c: NightAttackType }
|
|
565
553
|
| { t: "Asw"; c: AswAttackType };
|
|
@@ -609,20 +597,9 @@ export interface OrgState {
|
|
|
609
597
|
boss_sup?: string;
|
|
610
598
|
}
|
|
611
599
|
|
|
612
|
-
export interface AirSquadronState {
|
|
600
|
+
export interface AirSquadronState extends GearVecState, SlotSizeVecState {
|
|
613
601
|
id?: string;
|
|
614
602
|
mode?: AirSquadronMode;
|
|
615
|
-
g1?: GearState;
|
|
616
|
-
g2?: GearState;
|
|
617
|
-
g3?: GearState;
|
|
618
|
-
g4?: GearState;
|
|
619
|
-
g5?: GearState;
|
|
620
|
-
gx?: GearState;
|
|
621
|
-
ss1?: number;
|
|
622
|
-
ss2?: number;
|
|
623
|
-
ss3?: number;
|
|
624
|
-
ss4?: number;
|
|
625
|
-
ss5?: number;
|
|
626
603
|
}
|
|
627
604
|
|
|
628
605
|
export type AirSquadronMode = "Sortie" | "AirDefense";
|
|
@@ -656,6 +633,9 @@ export interface ShipState extends GearVecState, SlotSizeVecState {
|
|
|
656
633
|
asw_mod?: number;
|
|
657
634
|
los_mod?: number;
|
|
658
635
|
luck_mod?: number;
|
|
636
|
+
day_gunfit_accuracy?: number;
|
|
637
|
+
night_gunfit_accuracy?: number;
|
|
638
|
+
custom_power_mods?: CustomPowerModifiers;
|
|
659
639
|
}
|
|
660
640
|
|
|
661
641
|
export interface SlotSizeVecState {
|
|
@@ -682,6 +662,46 @@ export interface GearState {
|
|
|
682
662
|
stars?: number;
|
|
683
663
|
}
|
|
684
664
|
|
|
665
|
+
export interface MasterGear {
|
|
666
|
+
gear_id: number;
|
|
667
|
+
name: string;
|
|
668
|
+
types: GearTypeIdArray;
|
|
669
|
+
special_type?: number;
|
|
670
|
+
max_hp?: number;
|
|
671
|
+
firepower?: number;
|
|
672
|
+
armor?: number;
|
|
673
|
+
torpedo?: number;
|
|
674
|
+
anti_air?: number;
|
|
675
|
+
speed?: number;
|
|
676
|
+
bombing?: number;
|
|
677
|
+
asw?: number;
|
|
678
|
+
los?: number;
|
|
679
|
+
luck?: number;
|
|
680
|
+
accuracy?: number;
|
|
681
|
+
evasion?: number;
|
|
682
|
+
range?: number;
|
|
683
|
+
radius?: number;
|
|
684
|
+
cost?: number;
|
|
685
|
+
improvable?: boolean;
|
|
686
|
+
ship_anti_air_resistance?: number;
|
|
687
|
+
fleet_anti_air_resistance?: number;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
export interface HitRate {
|
|
691
|
+
total: number;
|
|
692
|
+
normal: number;
|
|
693
|
+
critical: number;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
export interface HitRateParams {
|
|
697
|
+
accuracy_term: number;
|
|
698
|
+
evasion_term: number;
|
|
699
|
+
target_morale_mod: number;
|
|
700
|
+
critical_rate_constant: number;
|
|
701
|
+
critical_percentage_bonus: number;
|
|
702
|
+
hit_percentage_bonus: number;
|
|
703
|
+
}
|
|
704
|
+
|
|
685
705
|
export type NightAttackType = "Normal" | "ArkRoyal" | "Carrier";
|
|
686
706
|
|
|
687
707
|
export type NightSpecialAttack =
|
|
@@ -705,32 +725,6 @@ export type NightCutin =
|
|
|
705
725
|
| "Cvci1_18"
|
|
706
726
|
| "Photobomber";
|
|
707
727
|
|
|
708
|
-
export interface WarfareInfo {
|
|
709
|
-
day: AttackInfo<DayBattleAttackType, DayCutin | null> | null;
|
|
710
|
-
closing_torpedo: AttackInfo<null, null> | null;
|
|
711
|
-
night: AttackInfo<NightBattleAttackType, NightCutin | null> | null;
|
|
712
|
-
shelling_support: AttackInfo<null, null> | null;
|
|
713
|
-
opening_asw: AttackInfo<null, null> | null;
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
export interface WarfareAnalyzerContext {
|
|
717
|
-
attacker_env: WarfareAnalyzerShipEnvironment;
|
|
718
|
-
target_env: WarfareAnalyzerShipEnvironment;
|
|
719
|
-
engagement: Engagement;
|
|
720
|
-
air_state: AirState;
|
|
721
|
-
}
|
|
722
|
-
|
|
723
|
-
export interface WarfareAnalyzerShipEnvironment {
|
|
724
|
-
org_type: OrgType;
|
|
725
|
-
role: Role;
|
|
726
|
-
ship_index: number;
|
|
727
|
-
fleet_len: number;
|
|
728
|
-
formation: Formation;
|
|
729
|
-
fleet_los_mod: number | null;
|
|
730
|
-
night_situation: NightSituation;
|
|
731
|
-
custom_mods: CustomModifiers;
|
|
732
|
-
}
|
|
733
|
-
|
|
734
728
|
export interface BattleConfig {
|
|
735
729
|
formation: Record<Formation, NestedFormationDef>;
|
|
736
730
|
anti_air_cutin: Record<number, AntiAirCutinDef>;
|
|
@@ -818,25 +812,6 @@ export type StatInterval = [number | null, number | null];
|
|
|
818
812
|
|
|
819
813
|
export type GearTypeIdArray = [number, number, number, number, number];
|
|
820
814
|
|
|
821
|
-
export type Side = "Player" | "Enemy";
|
|
822
|
-
|
|
823
|
-
export type SpecialEnemyType =
|
|
824
|
-
| "None"
|
|
825
|
-
| "SoftSkinned"
|
|
826
|
-
| "Pillbox"
|
|
827
|
-
| "IsolatedIsland"
|
|
828
|
-
| "SupplyDepot"
|
|
829
|
-
| "HarbourSummerPrincess"
|
|
830
|
-
| "PtImp"
|
|
831
|
-
| "BattleshipSummerPrincess"
|
|
832
|
-
| "HeavyCruiserSummerPrincess";
|
|
833
|
-
|
|
834
|
-
export type MoraleState = "Sparkle" | "Normal" | "Orange" | "Red";
|
|
835
|
-
|
|
836
|
-
export type DamageState = "Normal" | "Shouha" | "Chuuha" | "Taiha" | "Sunk";
|
|
837
|
-
|
|
838
|
-
export type SpeedGroup = "A" | "B1" | "B2" | "C";
|
|
839
|
-
|
|
840
815
|
export type ContactRank = "Rank1" | "Rank2" | "Rank3";
|
|
841
816
|
|
|
842
817
|
export interface SimulatorResult {
|
|
@@ -851,6 +826,31 @@ export interface SimulatorResultItem {
|
|
|
851
826
|
damage_state_map: Record<DamageState, number>;
|
|
852
827
|
}
|
|
853
828
|
|
|
829
|
+
export interface WarfareInfo {
|
|
830
|
+
day: AttackInfo<DayBattleAttackType, DayCutin | null> | null;
|
|
831
|
+
closing_torpedo: AttackInfo<null, null> | null;
|
|
832
|
+
night: AttackInfo<NightBattleAttackType, NightCutin | null> | null;
|
|
833
|
+
shelling_support: AttackInfo<null, null> | null;
|
|
834
|
+
opening_asw: AttackInfo<null, null> | null;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
export interface WarfareAnalyzerContext {
|
|
838
|
+
attacker_env: WarfareAnalyzerShipEnvironment;
|
|
839
|
+
target_env: WarfareAnalyzerShipEnvironment;
|
|
840
|
+
engagement: Engagement;
|
|
841
|
+
air_state: AirState;
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
export interface WarfareAnalyzerShipEnvironment {
|
|
845
|
+
org_type: OrgType;
|
|
846
|
+
role: Role;
|
|
847
|
+
ship_index: number;
|
|
848
|
+
fleet_len: number;
|
|
849
|
+
formation: Formation;
|
|
850
|
+
fleet_los_mod: number | null;
|
|
851
|
+
night_situation: NightSituation;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
854
|
export interface FleetNightCutinRateInfo {
|
|
855
855
|
night_contact_chance: NightContactChance;
|
|
856
856
|
ships: ShipNightCutinRateInfo[];
|
|
@@ -914,7 +914,7 @@ export class AirSquadron {
|
|
|
914
914
|
mode: AirSquadronMode;
|
|
915
915
|
/**
|
|
916
916
|
*/
|
|
917
|
-
xxh3:
|
|
917
|
+
xxh3: bigint;
|
|
918
918
|
}
|
|
919
919
|
/**
|
|
920
920
|
*/
|
|
@@ -1241,7 +1241,6 @@ export class Fleet {
|
|
|
1241
1241
|
*/
|
|
1242
1242
|
reset_battle_state(): void;
|
|
1243
1243
|
/**
|
|
1244
|
-
* @returns {number | undefined}
|
|
1245
1244
|
*/
|
|
1246
1245
|
readonly fleet_los_mod: number | undefined;
|
|
1247
1246
|
/**
|
|
@@ -1252,7 +1251,7 @@ export class Fleet {
|
|
|
1252
1251
|
len: number;
|
|
1253
1252
|
/**
|
|
1254
1253
|
*/
|
|
1255
|
-
xxh3:
|
|
1254
|
+
xxh3: bigint;
|
|
1256
1255
|
}
|
|
1257
1256
|
/**
|
|
1258
1257
|
*/
|
|
@@ -1370,14 +1369,12 @@ export class Gear {
|
|
|
1370
1369
|
*/
|
|
1371
1370
|
accuracy: number;
|
|
1372
1371
|
/**
|
|
1373
|
-
* @returns {number}
|
|
1374
1372
|
*/
|
|
1375
1373
|
readonly ace: number;
|
|
1376
1374
|
/**
|
|
1377
1375
|
*/
|
|
1378
1376
|
anti_air: number;
|
|
1379
1377
|
/**
|
|
1380
|
-
* @returns {number}
|
|
1381
1378
|
*/
|
|
1382
1379
|
readonly anti_bomber: number;
|
|
1383
1380
|
/**
|
|
@@ -1414,11 +1411,9 @@ export class Gear {
|
|
|
1414
1411
|
*/
|
|
1415
1412
|
gear_type: GearType;
|
|
1416
1413
|
/**
|
|
1417
|
-
* @returns {number}
|
|
1418
1414
|
*/
|
|
1419
1415
|
readonly gear_type_id: number;
|
|
1420
1416
|
/**
|
|
1421
|
-
* @returns {number}
|
|
1422
1417
|
*/
|
|
1423
1418
|
readonly icon_id: number;
|
|
1424
1419
|
/**
|
|
@@ -1428,7 +1423,6 @@ export class Gear {
|
|
|
1428
1423
|
*/
|
|
1429
1424
|
improvable: boolean;
|
|
1430
1425
|
/**
|
|
1431
|
-
* @returns {number}
|
|
1432
1426
|
*/
|
|
1433
1427
|
readonly interception: number;
|
|
1434
1428
|
/**
|
|
@@ -1453,7 +1447,6 @@ export class Gear {
|
|
|
1453
1447
|
*/
|
|
1454
1448
|
ship_anti_air_resistance: number;
|
|
1455
1449
|
/**
|
|
1456
|
-
* @returns {number}
|
|
1457
1450
|
*/
|
|
1458
1451
|
readonly special_type_id: number;
|
|
1459
1452
|
/**
|
|
@@ -1470,7 +1463,7 @@ export class Gear {
|
|
|
1470
1463
|
types: Uint8Array;
|
|
1471
1464
|
/**
|
|
1472
1465
|
*/
|
|
1473
|
-
xxh3:
|
|
1466
|
+
xxh3: bigint;
|
|
1474
1467
|
}
|
|
1475
1468
|
/**
|
|
1476
1469
|
*/
|
|
@@ -1663,7 +1656,7 @@ export class Org {
|
|
|
1663
1656
|
sortie: string;
|
|
1664
1657
|
/**
|
|
1665
1658
|
*/
|
|
1666
|
-
xxh3:
|
|
1659
|
+
xxh3: bigint;
|
|
1667
1660
|
}
|
|
1668
1661
|
/**
|
|
1669
1662
|
*/
|
|
@@ -1682,6 +1675,10 @@ export class Ship {
|
|
|
1682
1675
|
* @returns {ShipState}
|
|
1683
1676
|
*/
|
|
1684
1677
|
state(): ShipState;
|
|
1678
|
+
/**
|
|
1679
|
+
* @returns {CustomPowerModifiers}
|
|
1680
|
+
*/
|
|
1681
|
+
custom_power_mods(): CustomPowerModifiers;
|
|
1685
1682
|
/**
|
|
1686
1683
|
* @returns {ShipMeta}
|
|
1687
1684
|
*/
|
|
@@ -1821,11 +1818,6 @@ export class Ship {
|
|
|
1821
1818
|
* @returns {number}
|
|
1822
1819
|
*/
|
|
1823
1820
|
cruiser_fit_bonus(): number;
|
|
1824
|
-
/**
|
|
1825
|
-
* @param {boolean} is_night
|
|
1826
|
-
* @returns {number}
|
|
1827
|
-
*/
|
|
1828
|
-
fit_gun_bonus(is_night: boolean): number;
|
|
1829
1821
|
/**
|
|
1830
1822
|
* @returns {number | undefined}
|
|
1831
1823
|
*/
|
|
@@ -1869,22 +1861,32 @@ export class Ship {
|
|
|
1869
1861
|
*/
|
|
1870
1862
|
take_damage(value: number): void;
|
|
1871
1863
|
/**
|
|
1864
|
+
* @returns {number | undefined}
|
|
1865
|
+
*/
|
|
1866
|
+
state_day_gunfit_accuracy(): number | undefined;
|
|
1867
|
+
/**
|
|
1868
|
+
* @returns {number | undefined}
|
|
1869
|
+
*/
|
|
1870
|
+
state_night_gunfit_accuracy(): number | undefined;
|
|
1871
|
+
/**
|
|
1872
|
+
* フィット砲補正
|
|
1873
|
+
* @param {boolean} is_night
|
|
1872
1874
|
* @returns {number}
|
|
1873
1875
|
*/
|
|
1876
|
+
gunfit_accuracy(is_night: boolean): number;
|
|
1877
|
+
/**
|
|
1878
|
+
*/
|
|
1874
1879
|
readonly accuracy: number;
|
|
1875
1880
|
/**
|
|
1876
1881
|
*/
|
|
1877
1882
|
ammo: number;
|
|
1878
1883
|
/**
|
|
1879
|
-
* @returns {number | undefined}
|
|
1880
1884
|
*/
|
|
1881
1885
|
readonly anti_air: number | undefined;
|
|
1882
1886
|
/**
|
|
1883
|
-
* @returns {number | undefined}
|
|
1884
1887
|
*/
|
|
1885
1888
|
readonly armor: number | undefined;
|
|
1886
1889
|
/**
|
|
1887
|
-
* @returns {number | undefined}
|
|
1888
1890
|
*/
|
|
1889
1891
|
readonly asw: number | undefined;
|
|
1890
1892
|
/**
|
|
@@ -1894,11 +1896,9 @@ export class Ship {
|
|
|
1894
1896
|
*/
|
|
1895
1897
|
current_hp: number;
|
|
1896
1898
|
/**
|
|
1897
|
-
* @returns {number | undefined}
|
|
1898
1899
|
*/
|
|
1899
1900
|
readonly evasion: number | undefined;
|
|
1900
1901
|
/**
|
|
1901
|
-
* @returns {number | undefined}
|
|
1902
1902
|
*/
|
|
1903
1903
|
readonly firepower: number | undefined;
|
|
1904
1904
|
/**
|
|
@@ -1908,81 +1908,63 @@ export class Ship {
|
|
|
1908
1908
|
*/
|
|
1909
1909
|
id: string;
|
|
1910
1910
|
/**
|
|
1911
|
-
* @returns {number}
|
|
1912
1911
|
*/
|
|
1913
1912
|
readonly innate_torpedo_accuracy: number;
|
|
1914
1913
|
/**
|
|
1915
1914
|
*/
|
|
1916
1915
|
level: number;
|
|
1917
1916
|
/**
|
|
1918
|
-
* @returns {number | undefined}
|
|
1919
1917
|
*/
|
|
1920
1918
|
readonly los: number | undefined;
|
|
1921
1919
|
/**
|
|
1922
|
-
* @returns {number | undefined}
|
|
1923
1920
|
*/
|
|
1924
1921
|
readonly luck: number | undefined;
|
|
1925
1922
|
/**
|
|
1926
|
-
* @returns {number}
|
|
1927
1923
|
*/
|
|
1928
1924
|
readonly max_ammo: number;
|
|
1929
1925
|
/**
|
|
1930
|
-
* @returns {number}
|
|
1931
1926
|
*/
|
|
1932
1927
|
readonly max_fuel: number;
|
|
1933
1928
|
/**
|
|
1934
|
-
* @returns {number | undefined}
|
|
1935
1929
|
*/
|
|
1936
1930
|
readonly max_hp: number | undefined;
|
|
1937
1931
|
/**
|
|
1938
1932
|
*/
|
|
1939
1933
|
morale: number;
|
|
1940
1934
|
/**
|
|
1941
|
-
* @returns {number | undefined}
|
|
1942
1935
|
*/
|
|
1943
1936
|
readonly naked_anti_air: number | undefined;
|
|
1944
1937
|
/**
|
|
1945
|
-
* @returns {number | undefined}
|
|
1946
1938
|
*/
|
|
1947
1939
|
readonly naked_armor: number | undefined;
|
|
1948
1940
|
/**
|
|
1949
|
-
* @returns {number | undefined}
|
|
1950
1941
|
*/
|
|
1951
1942
|
readonly naked_asw: number | undefined;
|
|
1952
1943
|
/**
|
|
1953
|
-
* @returns {number | undefined}
|
|
1954
1944
|
*/
|
|
1955
1945
|
readonly naked_evasion: number | undefined;
|
|
1956
1946
|
/**
|
|
1957
|
-
* @returns {number | undefined}
|
|
1958
1947
|
*/
|
|
1959
1948
|
readonly naked_firepower: number | undefined;
|
|
1960
1949
|
/**
|
|
1961
|
-
* @returns {number | undefined}
|
|
1962
1950
|
*/
|
|
1963
1951
|
readonly naked_los: number | undefined;
|
|
1964
1952
|
/**
|
|
1965
|
-
* @returns {number | undefined}
|
|
1966
1953
|
*/
|
|
1967
1954
|
readonly naked_range: number | undefined;
|
|
1968
1955
|
/**
|
|
1969
|
-
* @returns {number}
|
|
1970
1956
|
*/
|
|
1971
1957
|
readonly naked_speed: number;
|
|
1972
1958
|
/**
|
|
1973
|
-
* @returns {number | undefined}
|
|
1974
1959
|
*/
|
|
1975
1960
|
readonly naked_torpedo: number | undefined;
|
|
1976
1961
|
/**
|
|
1977
|
-
* @returns {string}
|
|
1978
1962
|
*/
|
|
1979
1963
|
readonly name: string;
|
|
1980
1964
|
/**
|
|
1981
|
-
* @returns {number}
|
|
1982
1965
|
*/
|
|
1983
1966
|
readonly next_id: number;
|
|
1984
1967
|
/**
|
|
1985
|
-
* @returns {number | undefined}
|
|
1986
1968
|
*/
|
|
1987
1969
|
readonly range: number | undefined;
|
|
1988
1970
|
/**
|
|
@@ -1992,37 +1974,30 @@ export class Ship {
|
|
|
1992
1974
|
*/
|
|
1993
1975
|
ship_type: ShipType;
|
|
1994
1976
|
/**
|
|
1995
|
-
* @returns {number}
|
|
1996
1977
|
*/
|
|
1997
1978
|
readonly slotnum: number;
|
|
1998
1979
|
/**
|
|
1999
1980
|
*/
|
|
2000
1981
|
slots: SlotSizeVec;
|
|
2001
1982
|
/**
|
|
2002
|
-
* @returns {number}
|
|
2003
1983
|
*/
|
|
2004
1984
|
readonly sort_id: number;
|
|
2005
1985
|
/**
|
|
2006
|
-
* @returns {number}
|
|
2007
1986
|
*/
|
|
2008
1987
|
readonly speed: number;
|
|
2009
1988
|
/**
|
|
2010
|
-
* @returns {number}
|
|
2011
1989
|
*/
|
|
2012
1990
|
readonly stype: number;
|
|
2013
1991
|
/**
|
|
2014
|
-
* @returns {number | undefined}
|
|
2015
1992
|
*/
|
|
2016
1993
|
readonly torpedo: number | undefined;
|
|
2017
1994
|
/**
|
|
2018
|
-
* @returns {boolean}
|
|
2019
1995
|
*/
|
|
2020
1996
|
readonly useful: boolean;
|
|
2021
1997
|
/**
|
|
2022
1998
|
*/
|
|
2023
|
-
xxh3:
|
|
1999
|
+
xxh3: bigint;
|
|
2024
2000
|
/**
|
|
2025
|
-
* @returns {string}
|
|
2026
2001
|
*/
|
|
2027
2002
|
readonly yomi: string;
|
|
2028
2003
|
}
|