fleethub-core 1.7.3 → 1.7.7
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 +802 -350
- package/node/fleethub_core.js +24 -17
- package/node/fleethub_core_bg.wasm +0 -0
- package/node/fleethub_core_bg.wasm.d.ts +2 -1
- package/package.json +1 -1
- package/pkg/fleethub_core.d.ts +802 -350
- package/pkg/fleethub_core_bg.js +24 -17
- package/pkg/fleethub_core_bg.wasm +0 -0
- package/pkg/fleethub_core_bg.wasm.d.ts +2 -1
package/pkg/fleethub_core.d.ts
CHANGED
|
@@ -3,103 +3,267 @@
|
|
|
3
3
|
/**
|
|
4
4
|
*/
|
|
5
5
|
export function set_panic_hook(): void;
|
|
6
|
+
declare namespace ShipType {
|
|
7
|
+
export type Unknown = "Unknown";
|
|
8
|
+
export type DE = "DE";
|
|
9
|
+
export type DD = "DD";
|
|
10
|
+
export type CL = "CL";
|
|
11
|
+
export type CLT = "CLT";
|
|
12
|
+
export type CA = "CA";
|
|
13
|
+
export type CAV = "CAV";
|
|
14
|
+
export type CVL = "CVL";
|
|
15
|
+
export type FBB = "FBB";
|
|
16
|
+
export type BB = "BB";
|
|
17
|
+
export type BBV = "BBV";
|
|
18
|
+
export type CV = "CV";
|
|
19
|
+
export type XBB = "XBB";
|
|
20
|
+
export type SS = "SS";
|
|
21
|
+
export type SSV = "SSV";
|
|
22
|
+
export type AP = "AP";
|
|
23
|
+
export type AV = "AV";
|
|
24
|
+
export type LHA = "LHA";
|
|
25
|
+
export type CVB = "CVB";
|
|
26
|
+
export type AR = "AR";
|
|
27
|
+
export type AS = "AS";
|
|
28
|
+
export type CT = "CT";
|
|
29
|
+
export type AO = "AO";
|
|
30
|
+
}
|
|
31
|
+
|
|
6
32
|
export type ShipType =
|
|
7
|
-
|
|
|
8
|
-
|
|
|
9
|
-
|
|
|
10
|
-
|
|
|
11
|
-
|
|
|
12
|
-
|
|
|
13
|
-
|
|
|
14
|
-
|
|
|
15
|
-
|
|
|
16
|
-
|
|
|
17
|
-
|
|
|
18
|
-
|
|
|
19
|
-
|
|
|
20
|
-
|
|
|
21
|
-
|
|
|
22
|
-
|
|
|
23
|
-
|
|
|
24
|
-
|
|
|
25
|
-
|
|
|
26
|
-
|
|
|
27
|
-
|
|
|
28
|
-
|
|
|
29
|
-
|
|
|
33
|
+
| ShipType.Unknown
|
|
34
|
+
| ShipType.DE
|
|
35
|
+
| ShipType.DD
|
|
36
|
+
| ShipType.CL
|
|
37
|
+
| ShipType.CLT
|
|
38
|
+
| ShipType.CA
|
|
39
|
+
| ShipType.CAV
|
|
40
|
+
| ShipType.CVL
|
|
41
|
+
| ShipType.FBB
|
|
42
|
+
| ShipType.BB
|
|
43
|
+
| ShipType.BBV
|
|
44
|
+
| ShipType.CV
|
|
45
|
+
| ShipType.XBB
|
|
46
|
+
| ShipType.SS
|
|
47
|
+
| ShipType.SSV
|
|
48
|
+
| ShipType.AP
|
|
49
|
+
| ShipType.AV
|
|
50
|
+
| ShipType.LHA
|
|
51
|
+
| ShipType.CVB
|
|
52
|
+
| ShipType.AR
|
|
53
|
+
| ShipType.AS
|
|
54
|
+
| ShipType.CT
|
|
55
|
+
| ShipType.AO;
|
|
56
|
+
|
|
57
|
+
declare namespace ShipCategory {
|
|
58
|
+
export type Battleship = "Battleship";
|
|
59
|
+
export type AircraftCarrier = "AircraftCarrier";
|
|
60
|
+
export type HeavyCruiser = "HeavyCruiser";
|
|
61
|
+
export type LightCruiser = "LightCruiser";
|
|
62
|
+
export type Destroyer = "Destroyer";
|
|
63
|
+
export type CoastalDefenseShip = "CoastalDefenseShip";
|
|
64
|
+
export type Submarine = "Submarine";
|
|
65
|
+
export type AuxiliaryShip = "AuxiliaryShip";
|
|
66
|
+
}
|
|
30
67
|
|
|
31
68
|
export type ShipCategory =
|
|
32
|
-
|
|
|
33
|
-
|
|
|
34
|
-
|
|
|
35
|
-
|
|
|
36
|
-
|
|
|
37
|
-
|
|
|
38
|
-
|
|
|
39
|
-
|
|
|
69
|
+
| ShipCategory.Battleship
|
|
70
|
+
| ShipCategory.AircraftCarrier
|
|
71
|
+
| ShipCategory.HeavyCruiser
|
|
72
|
+
| ShipCategory.LightCruiser
|
|
73
|
+
| ShipCategory.Destroyer
|
|
74
|
+
| ShipCategory.CoastalDefenseShip
|
|
75
|
+
| ShipCategory.Submarine
|
|
76
|
+
| ShipCategory.AuxiliaryShip;
|
|
77
|
+
|
|
78
|
+
type __ShellingSpecialAttackDayCutin = DayCutin;
|
|
79
|
+
type __ShellingSpecialAttackFleetCutin = FleetCutin;
|
|
80
|
+
declare namespace ShellingSpecialAttack {
|
|
81
|
+
export type DayCutin = { DayCutin: __ShellingSpecialAttackDayCutin };
|
|
82
|
+
export type FleetCutin = { FleetCutin: __ShellingSpecialAttackFleetCutin };
|
|
83
|
+
}
|
|
40
84
|
|
|
41
85
|
export type ShellingSpecialAttack =
|
|
42
|
-
|
|
|
43
|
-
|
|
|
86
|
+
| ShellingSpecialAttack.DayCutin
|
|
87
|
+
| ShellingSpecialAttack.FleetCutin;
|
|
88
|
+
|
|
89
|
+
declare namespace DayCutin {
|
|
90
|
+
export type MainMain = "MainMain";
|
|
91
|
+
export type MainAp = "MainAp";
|
|
92
|
+
export type MainRadar = "MainRadar";
|
|
93
|
+
export type MainSec = "MainSec";
|
|
94
|
+
export type DoubleAttack = "DoubleAttack";
|
|
95
|
+
export type FBA = "FBA";
|
|
96
|
+
export type BBA = "BBA";
|
|
97
|
+
export type BA = "BA";
|
|
98
|
+
export type Zuiun = "Zuiun";
|
|
99
|
+
export type AirSea = "AirSea";
|
|
100
|
+
}
|
|
44
101
|
|
|
45
102
|
export type DayCutin =
|
|
46
|
-
|
|
|
47
|
-
|
|
|
48
|
-
|
|
|
49
|
-
|
|
|
50
|
-
|
|
|
51
|
-
|
|
|
52
|
-
|
|
|
53
|
-
|
|
|
54
|
-
|
|
|
55
|
-
|
|
|
103
|
+
| DayCutin.MainMain
|
|
104
|
+
| DayCutin.MainAp
|
|
105
|
+
| DayCutin.MainRadar
|
|
106
|
+
| DayCutin.MainSec
|
|
107
|
+
| DayCutin.DoubleAttack
|
|
108
|
+
| DayCutin.FBA
|
|
109
|
+
| DayCutin.BBA
|
|
110
|
+
| DayCutin.BA
|
|
111
|
+
| DayCutin.Zuiun
|
|
112
|
+
| DayCutin.AirSea;
|
|
113
|
+
|
|
114
|
+
declare namespace ShellingAttackType {
|
|
115
|
+
export type Normal = "Normal";
|
|
116
|
+
export type Carrier = "Carrier";
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export type ShellingAttackType =
|
|
120
|
+
| ShellingAttackType.Normal
|
|
121
|
+
| ShellingAttackType.Carrier;
|
|
56
122
|
|
|
57
|
-
export interface
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
123
|
+
export interface FleetCutinAnalysis {
|
|
124
|
+
shelling: FleetCutinInfo[];
|
|
125
|
+
night: FleetCutinInfo[];
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export interface FleetCutinInfo {
|
|
129
|
+
cutin: FleetCutin;
|
|
130
|
+
rate: number | null;
|
|
131
|
+
formation: Formation;
|
|
132
|
+
items: FleetCutinInfoItem[];
|
|
62
133
|
}
|
|
63
134
|
|
|
64
|
-
export
|
|
135
|
+
export interface FleetCutinInfoItem {
|
|
136
|
+
ship_id: number;
|
|
137
|
+
cutin: FleetCutin;
|
|
138
|
+
fleet_cutin_mod: number;
|
|
139
|
+
stats: AttackStats;
|
|
140
|
+
}
|
|
65
141
|
|
|
66
|
-
|
|
142
|
+
declare namespace SpecialEnemyType {
|
|
143
|
+
export type None = "None";
|
|
144
|
+
export type SoftSkinned = "SoftSkinned";
|
|
145
|
+
export type Pillbox = "Pillbox";
|
|
146
|
+
export type IsolatedIsland = "IsolatedIsland";
|
|
147
|
+
export type SupplyDepot = "SupplyDepot";
|
|
148
|
+
export type HarbourSummerPrincess = "HarbourSummerPrincess";
|
|
149
|
+
export type PtImp = "PtImp";
|
|
150
|
+
export type BattleshipSummerPrincess = "BattleshipSummerPrincess";
|
|
151
|
+
export type HeavyCruiserSummerPrincess = "HeavyCruiserSummerPrincess";
|
|
152
|
+
}
|
|
67
153
|
|
|
68
|
-
export type
|
|
154
|
+
export type SpecialEnemyType =
|
|
155
|
+
| SpecialEnemyType.None
|
|
156
|
+
| SpecialEnemyType.SoftSkinned
|
|
157
|
+
| SpecialEnemyType.Pillbox
|
|
158
|
+
| SpecialEnemyType.IsolatedIsland
|
|
159
|
+
| SpecialEnemyType.SupplyDepot
|
|
160
|
+
| SpecialEnemyType.HarbourSummerPrincess
|
|
161
|
+
| SpecialEnemyType.PtImp
|
|
162
|
+
| SpecialEnemyType.BattleshipSummerPrincess
|
|
163
|
+
| SpecialEnemyType.HeavyCruiserSummerPrincess;
|
|
164
|
+
|
|
165
|
+
declare namespace MoraleState {
|
|
166
|
+
export type Sparkle = "Sparkle";
|
|
167
|
+
export type Normal = "Normal";
|
|
168
|
+
export type Orange = "Orange";
|
|
169
|
+
export type Red = "Red";
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export type MoraleState =
|
|
173
|
+
| MoraleState.Sparkle
|
|
174
|
+
| MoraleState.Normal
|
|
175
|
+
| MoraleState.Orange
|
|
176
|
+
| MoraleState.Red;
|
|
177
|
+
|
|
178
|
+
declare namespace DamageState {
|
|
179
|
+
export type Normal = "Normal";
|
|
180
|
+
export type Shouha = "Shouha";
|
|
181
|
+
export type Chuuha = "Chuuha";
|
|
182
|
+
export type Taiha = "Taiha";
|
|
183
|
+
export type Sunk = "Sunk";
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export type DamageState =
|
|
187
|
+
| DamageState.Normal
|
|
188
|
+
| DamageState.Shouha
|
|
189
|
+
| DamageState.Chuuha
|
|
190
|
+
| DamageState.Taiha
|
|
191
|
+
| DamageState.Sunk;
|
|
192
|
+
|
|
193
|
+
declare namespace SpeedGroup {
|
|
194
|
+
export type A = "A";
|
|
195
|
+
export type B1 = "B1";
|
|
196
|
+
export type B2 = "B2";
|
|
197
|
+
export type C = "C";
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export type SpeedGroup =
|
|
201
|
+
| SpeedGroup.A
|
|
202
|
+
| SpeedGroup.B1
|
|
203
|
+
| SpeedGroup.B2
|
|
204
|
+
| SpeedGroup.C;
|
|
205
|
+
|
|
206
|
+
declare namespace AswAttackType {
|
|
207
|
+
export type DepthCharge = "DepthCharge";
|
|
208
|
+
export type Aircraft = "Aircraft";
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export type AswAttackType = AswAttackType.DepthCharge | AswAttackType.Aircraft;
|
|
212
|
+
|
|
213
|
+
declare namespace OrgType {
|
|
214
|
+
export type Single = "Single";
|
|
215
|
+
export type CarrierTaskForce = "CarrierTaskForce";
|
|
216
|
+
export type SurfaceTaskForce = "SurfaceTaskForce";
|
|
217
|
+
export type TransportEscort = "TransportEscort";
|
|
218
|
+
export type EnemySingle = "EnemySingle";
|
|
219
|
+
export type EnemyCombined = "EnemyCombined";
|
|
220
|
+
}
|
|
69
221
|
|
|
70
222
|
export type OrgType =
|
|
71
|
-
|
|
|
72
|
-
|
|
|
73
|
-
|
|
|
74
|
-
|
|
|
75
|
-
|
|
|
76
|
-
|
|
|
223
|
+
| OrgType.Single
|
|
224
|
+
| OrgType.CarrierTaskForce
|
|
225
|
+
| OrgType.SurfaceTaskForce
|
|
226
|
+
| OrgType.TransportEscort
|
|
227
|
+
| OrgType.EnemySingle
|
|
228
|
+
| OrgType.EnemyCombined;
|
|
229
|
+
|
|
230
|
+
declare namespace FleetCutin {
|
|
231
|
+
export type NelsonTouch = "NelsonTouch";
|
|
232
|
+
export type NagatoCutin = "NagatoCutin";
|
|
233
|
+
export type ColoradoCutin = "ColoradoCutin";
|
|
234
|
+
export type KongouCutin = "KongouCutin";
|
|
235
|
+
export type Yamato2ShipCutin = "Yamato2ShipCutin";
|
|
236
|
+
export type Yamato3ShipCutin = "Yamato3ShipCutin";
|
|
237
|
+
}
|
|
77
238
|
|
|
78
239
|
export type FleetCutin =
|
|
79
|
-
|
|
|
80
|
-
|
|
|
81
|
-
|
|
|
82
|
-
|
|
|
83
|
-
|
|
|
84
|
-
|
|
|
240
|
+
| FleetCutin.NelsonTouch
|
|
241
|
+
| FleetCutin.NagatoCutin
|
|
242
|
+
| FleetCutin.ColoradoCutin
|
|
243
|
+
| FleetCutin.KongouCutin
|
|
244
|
+
| FleetCutin.Yamato2ShipCutin
|
|
245
|
+
| FleetCutin.Yamato3ShipCutin;
|
|
85
246
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
air_state: AirState;
|
|
91
|
-
custom_mods: CustomModifiers;
|
|
247
|
+
declare namespace AirWaveType {
|
|
248
|
+
export type Jet = "Jet";
|
|
249
|
+
export type LandBase = "LandBase";
|
|
250
|
+
export type Carrier = "Carrier";
|
|
92
251
|
}
|
|
93
252
|
|
|
94
|
-
export
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
253
|
+
export type AirWaveType =
|
|
254
|
+
| AirWaveType.Jet
|
|
255
|
+
| AirWaveType.LandBase
|
|
256
|
+
| AirWaveType.Carrier;
|
|
257
|
+
|
|
258
|
+
export type NumMap<K, V> = Partial<Record<K, V>>;
|
|
259
|
+
|
|
260
|
+
declare namespace Role {
|
|
261
|
+
export type Main = "Main";
|
|
262
|
+
export type Escort = "Escort";
|
|
101
263
|
}
|
|
102
264
|
|
|
265
|
+
export type Role = Role.Main | Role.Escort;
|
|
266
|
+
|
|
103
267
|
export interface CompMeta {
|
|
104
268
|
fleets: Record<FleetType, FleetMeta>;
|
|
105
269
|
}
|
|
@@ -115,52 +279,6 @@ export interface ShipMeta {
|
|
|
115
279
|
ship_id: number;
|
|
116
280
|
}
|
|
117
281
|
|
|
118
|
-
export interface AttackPower {
|
|
119
|
-
precap: number;
|
|
120
|
-
is_capped: boolean;
|
|
121
|
-
capped: number;
|
|
122
|
-
normal: number;
|
|
123
|
-
critical: number;
|
|
124
|
-
armor_penetration: number;
|
|
125
|
-
remaining_ammo_mod: number;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
export interface AttackPowerParams {
|
|
129
|
-
basic: number;
|
|
130
|
-
cap: number;
|
|
131
|
-
precap_mod: AttackPowerModifier;
|
|
132
|
-
postcap_mod: AttackPowerModifier;
|
|
133
|
-
ap_shell_mod: number | null;
|
|
134
|
-
carrier_power: number | null;
|
|
135
|
-
proficiency_critical_mod: number | null;
|
|
136
|
-
armor_penetration: number;
|
|
137
|
-
remaining_ammo_mod: number;
|
|
138
|
-
special_enemy_mods: SpecialEnemyModifiers;
|
|
139
|
-
custom_mods: CustomModifiers;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export interface CustomModifiers {
|
|
143
|
-
precap_mod?: AttackPowerModifier;
|
|
144
|
-
postcap_mod?: AttackPowerModifier;
|
|
145
|
-
basic_power_mod?: AttackPowerModifier;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
export interface SpecialEnemyModifiers {
|
|
149
|
-
precap_general_mod: AttackPowerModifier;
|
|
150
|
-
stype_mod: AttackPowerModifier;
|
|
151
|
-
landing_craft_synergy_mod: AttackPowerModifier;
|
|
152
|
-
toku_daihatsu_tank_mod: AttackPowerModifier;
|
|
153
|
-
m4a1dd_mod: AttackPowerModifier;
|
|
154
|
-
honi_mod: AttackPowerModifier;
|
|
155
|
-
postcap_general_mod: AttackPowerModifier;
|
|
156
|
-
pt_mod: AttackPowerModifier;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export interface AttackPowerModifier {
|
|
160
|
-
a: number;
|
|
161
|
-
b: number;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
282
|
export interface MasterData {
|
|
165
283
|
gears: MasterGear[];
|
|
166
284
|
gear_attrs: MasterAttrRule<GearAttr>[];
|
|
@@ -187,6 +305,22 @@ export interface MasterAttrRule<T> {
|
|
|
187
305
|
expr: string;
|
|
188
306
|
}
|
|
189
307
|
|
|
308
|
+
export interface WarfareContext {
|
|
309
|
+
attacker_env: WarfareShipEnvironment;
|
|
310
|
+
target_env: WarfareShipEnvironment;
|
|
311
|
+
engagement: Engagement;
|
|
312
|
+
air_state: AirState;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
export interface WarfareShipEnvironment {
|
|
316
|
+
org_type: OrgType;
|
|
317
|
+
role: Role;
|
|
318
|
+
ship_index: number;
|
|
319
|
+
fleet_len: number;
|
|
320
|
+
formation: Formation;
|
|
321
|
+
fleet_los_mod: number | null;
|
|
322
|
+
}
|
|
323
|
+
|
|
190
324
|
export interface CompDayCutinRateInfo {
|
|
191
325
|
main: FleetDayCutinRateInfo;
|
|
192
326
|
escort: FleetDayCutinRateInfo | null;
|
|
@@ -209,86 +343,170 @@ export interface DayCutinRateInfo {
|
|
|
209
343
|
total_cutin_rate: number | null;
|
|
210
344
|
}
|
|
211
345
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
export type
|
|
346
|
+
declare namespace GearCategory {
|
|
347
|
+
export type Fighter = "Fighter";
|
|
348
|
+
export type Bomber = "Bomber";
|
|
349
|
+
export type Recon = "Recon";
|
|
350
|
+
export type MainGun = "MainGun";
|
|
351
|
+
export type Secondary = "Secondary";
|
|
352
|
+
export type Torpedo = "Torpedo";
|
|
353
|
+
export type AntiSub = "AntiSub";
|
|
354
|
+
export type Radar = "Radar";
|
|
355
|
+
export type Landing = "Landing";
|
|
356
|
+
export type Ration = "Ration";
|
|
357
|
+
export type LandBased = "LandBased";
|
|
358
|
+
export type Misc = "Misc";
|
|
359
|
+
}
|
|
215
360
|
|
|
216
361
|
export type GearCategory =
|
|
217
|
-
|
|
|
218
|
-
|
|
|
219
|
-
|
|
|
220
|
-
|
|
|
221
|
-
|
|
|
222
|
-
|
|
|
223
|
-
|
|
|
224
|
-
|
|
|
225
|
-
|
|
|
226
|
-
|
|
|
227
|
-
|
|
|
228
|
-
|
|
|
362
|
+
| GearCategory.Fighter
|
|
363
|
+
| GearCategory.Bomber
|
|
364
|
+
| GearCategory.Recon
|
|
365
|
+
| GearCategory.MainGun
|
|
366
|
+
| GearCategory.Secondary
|
|
367
|
+
| GearCategory.Torpedo
|
|
368
|
+
| GearCategory.AntiSub
|
|
369
|
+
| GearCategory.Radar
|
|
370
|
+
| GearCategory.Landing
|
|
371
|
+
| GearCategory.Ration
|
|
372
|
+
| GearCategory.LandBased
|
|
373
|
+
| GearCategory.Misc;
|
|
374
|
+
|
|
375
|
+
declare namespace GearType {
|
|
376
|
+
export type Unknown = "Unknown";
|
|
377
|
+
export type SmallMainGun = "SmallMainGun";
|
|
378
|
+
export type MediumMainGun = "MediumMainGun";
|
|
379
|
+
export type LargeMainGun = "LargeMainGun";
|
|
380
|
+
export type SecondaryGun = "SecondaryGun";
|
|
381
|
+
export type Torpedo = "Torpedo";
|
|
382
|
+
export type CbFighter = "CbFighter";
|
|
383
|
+
export type CbDiveBomber = "CbDiveBomber";
|
|
384
|
+
export type CbTorpedoBomber = "CbTorpedoBomber";
|
|
385
|
+
export type CbRecon = "CbRecon";
|
|
386
|
+
export type ReconSeaplane = "ReconSeaplane";
|
|
387
|
+
export type SeaplaneBomber = "SeaplaneBomber";
|
|
388
|
+
export type SmallRadar = "SmallRadar";
|
|
389
|
+
export type LargeRadar = "LargeRadar";
|
|
390
|
+
export type Sonar = "Sonar";
|
|
391
|
+
export type DepthCharge = "DepthCharge";
|
|
392
|
+
export type ExtraArmor = "ExtraArmor";
|
|
393
|
+
export type Engine = "Engine";
|
|
394
|
+
export type AntiAirShell = "AntiAirShell";
|
|
395
|
+
export type ApShell = "ApShell";
|
|
396
|
+
export type VtFuze = "VtFuze";
|
|
397
|
+
export type AntiAirGun = "AntiAirGun";
|
|
398
|
+
export type MidgetSubmarine = "MidgetSubmarine";
|
|
399
|
+
export type EmergencyRepair = "EmergencyRepair";
|
|
400
|
+
export type LandingCraft = "LandingCraft";
|
|
401
|
+
export type Rotorcraft = "Rotorcraft";
|
|
402
|
+
export type AntiSubPatrolAircraft = "AntiSubPatrolAircraft";
|
|
403
|
+
export type MediumArmor = "MediumArmor";
|
|
404
|
+
export type LargeArmor = "LargeArmor";
|
|
405
|
+
export type Searchlight = "Searchlight";
|
|
406
|
+
export type SupplyContainer = "SupplyContainer";
|
|
407
|
+
export type ShipRepairFacility = "ShipRepairFacility";
|
|
408
|
+
export type SubmarineTorpedo = "SubmarineTorpedo";
|
|
409
|
+
export type Starshell = "Starshell";
|
|
410
|
+
export type CommandFacility = "CommandFacility";
|
|
411
|
+
export type AviationPersonnel = "AviationPersonnel";
|
|
412
|
+
export type AntiAirFireDirector = "AntiAirFireDirector";
|
|
413
|
+
export type AntiGroundEquipment = "AntiGroundEquipment";
|
|
414
|
+
export type LargeMainGun2 = "LargeMainGun2";
|
|
415
|
+
export type ShipPersonnel = "ShipPersonnel";
|
|
416
|
+
export type LargeSonar = "LargeSonar";
|
|
417
|
+
export type LargeFlyingBoat = "LargeFlyingBoat";
|
|
418
|
+
export type LargeSearchlight = "LargeSearchlight";
|
|
419
|
+
export type CombatRation = "CombatRation";
|
|
420
|
+
export type Supplies = "Supplies";
|
|
421
|
+
export type SeaplaneFighter = "SeaplaneFighter";
|
|
422
|
+
export type AmphibiousTank = "AmphibiousTank";
|
|
423
|
+
export type LbAttacker = "LbAttacker";
|
|
424
|
+
export type LbFighter = "LbFighter";
|
|
425
|
+
export type LbRecon = "LbRecon";
|
|
426
|
+
export type TransportationMaterial = "TransportationMaterial";
|
|
427
|
+
export type SubmarineEquipment = "SubmarineEquipment";
|
|
428
|
+
export type LargeLbAircraft = "LargeLbAircraft";
|
|
429
|
+
export type JetFighter = "JetFighter";
|
|
430
|
+
export type JetFighterBomber = "JetFighterBomber";
|
|
431
|
+
export type JetTorpedoBomber = "JetTorpedoBomber";
|
|
432
|
+
export type JetRecon = "JetRecon";
|
|
433
|
+
export type LargeRadar2 = "LargeRadar2";
|
|
434
|
+
export type CbRecon2 = "CbRecon2";
|
|
435
|
+
}
|
|
229
436
|
|
|
230
437
|
export type GearType =
|
|
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
|
-
|
|
438
|
+
| GearType.Unknown
|
|
439
|
+
| GearType.SmallMainGun
|
|
440
|
+
| GearType.MediumMainGun
|
|
441
|
+
| GearType.LargeMainGun
|
|
442
|
+
| GearType.SecondaryGun
|
|
443
|
+
| GearType.Torpedo
|
|
444
|
+
| GearType.CbFighter
|
|
445
|
+
| GearType.CbDiveBomber
|
|
446
|
+
| GearType.CbTorpedoBomber
|
|
447
|
+
| GearType.CbRecon
|
|
448
|
+
| GearType.ReconSeaplane
|
|
449
|
+
| GearType.SeaplaneBomber
|
|
450
|
+
| GearType.SmallRadar
|
|
451
|
+
| GearType.LargeRadar
|
|
452
|
+
| GearType.Sonar
|
|
453
|
+
| GearType.DepthCharge
|
|
454
|
+
| GearType.ExtraArmor
|
|
455
|
+
| GearType.Engine
|
|
456
|
+
| GearType.AntiAirShell
|
|
457
|
+
| GearType.ApShell
|
|
458
|
+
| GearType.VtFuze
|
|
459
|
+
| GearType.AntiAirGun
|
|
460
|
+
| GearType.MidgetSubmarine
|
|
461
|
+
| GearType.EmergencyRepair
|
|
462
|
+
| GearType.LandingCraft
|
|
463
|
+
| GearType.Rotorcraft
|
|
464
|
+
| GearType.AntiSubPatrolAircraft
|
|
465
|
+
| GearType.MediumArmor
|
|
466
|
+
| GearType.LargeArmor
|
|
467
|
+
| GearType.Searchlight
|
|
468
|
+
| GearType.SupplyContainer
|
|
469
|
+
| GearType.ShipRepairFacility
|
|
470
|
+
| GearType.SubmarineTorpedo
|
|
471
|
+
| GearType.Starshell
|
|
472
|
+
| GearType.CommandFacility
|
|
473
|
+
| GearType.AviationPersonnel
|
|
474
|
+
| GearType.AntiAirFireDirector
|
|
475
|
+
| GearType.AntiGroundEquipment
|
|
476
|
+
| GearType.LargeMainGun2
|
|
477
|
+
| GearType.ShipPersonnel
|
|
478
|
+
| GearType.LargeSonar
|
|
479
|
+
| GearType.LargeFlyingBoat
|
|
480
|
+
| GearType.LargeSearchlight
|
|
481
|
+
| GearType.CombatRation
|
|
482
|
+
| GearType.Supplies
|
|
483
|
+
| GearType.SeaplaneFighter
|
|
484
|
+
| GearType.AmphibiousTank
|
|
485
|
+
| GearType.LbAttacker
|
|
486
|
+
| GearType.LbFighter
|
|
487
|
+
| GearType.LbRecon
|
|
488
|
+
| GearType.TransportationMaterial
|
|
489
|
+
| GearType.SubmarineEquipment
|
|
490
|
+
| GearType.LargeLbAircraft
|
|
491
|
+
| GearType.JetFighter
|
|
492
|
+
| GearType.JetFighterBomber
|
|
493
|
+
| GearType.JetTorpedoBomber
|
|
494
|
+
| GearType.JetRecon
|
|
495
|
+
| GearType.LargeRadar2
|
|
496
|
+
| GearType.CbRecon2;
|
|
497
|
+
|
|
498
|
+
declare namespace Engagement {
|
|
499
|
+
export type GreenT = "GreenT";
|
|
500
|
+
export type Parallel = "Parallel";
|
|
501
|
+
export type HeadOn = "HeadOn";
|
|
502
|
+
export type RedT = "RedT";
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
export type Engagement =
|
|
506
|
+
| Engagement.GreenT
|
|
507
|
+
| Engagement.Parallel
|
|
508
|
+
| Engagement.HeadOn
|
|
509
|
+
| Engagement.RedT;
|
|
292
510
|
|
|
293
511
|
export interface EBonuses {
|
|
294
512
|
firepower: number;
|
|
@@ -330,14 +548,39 @@ export interface GearInput {
|
|
|
330
548
|
|
|
331
549
|
export type GearVecInput = GearInput[];
|
|
332
550
|
|
|
333
|
-
|
|
551
|
+
declare namespace AirStateRank {
|
|
552
|
+
export type Rank0 = "Rank0";
|
|
553
|
+
export type Rank1 = "Rank1";
|
|
554
|
+
export type Rank2 = "Rank2";
|
|
555
|
+
export type Rank3 = "Rank3";
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
export type AirStateRank =
|
|
559
|
+
| AirStateRank.Rank0
|
|
560
|
+
| AirStateRank.Rank1
|
|
561
|
+
| AirStateRank.Rank2
|
|
562
|
+
| AirStateRank.Rank3;
|
|
563
|
+
|
|
564
|
+
declare namespace AirState {
|
|
565
|
+
export type AirSupremacy = "AirSupremacy";
|
|
566
|
+
export type AirSuperiority = "AirSuperiority";
|
|
567
|
+
export type AirParity = "AirParity";
|
|
568
|
+
export type AirDenial = "AirDenial";
|
|
569
|
+
export type AirIncapability = "AirIncapability";
|
|
570
|
+
}
|
|
334
571
|
|
|
335
572
|
export type AirState =
|
|
336
|
-
|
|
|
337
|
-
|
|
|
338
|
-
|
|
|
339
|
-
|
|
|
340
|
-
|
|
|
573
|
+
| AirState.AirSupremacy
|
|
574
|
+
| AirState.AirSuperiority
|
|
575
|
+
| AirState.AirParity
|
|
576
|
+
| AirState.AirDenial
|
|
577
|
+
| AirState.AirIncapability;
|
|
578
|
+
|
|
579
|
+
export interface ShellingSupportSimulatorParams {
|
|
580
|
+
attacker_formation: Formation;
|
|
581
|
+
target_formation: Formation;
|
|
582
|
+
engagement: Engagement;
|
|
583
|
+
}
|
|
341
584
|
|
|
342
585
|
export interface MasterIBonuses {
|
|
343
586
|
shelling_power: MasterIBonusRule[];
|
|
@@ -369,25 +612,6 @@ export interface NightSituation {
|
|
|
369
612
|
searchlight: boolean;
|
|
370
613
|
}
|
|
371
614
|
|
|
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
615
|
export interface DamageInfo {
|
|
392
616
|
miss_damage_min: number;
|
|
393
617
|
miss_damage_max: number;
|
|
@@ -401,68 +625,134 @@ export interface DamageInfo {
|
|
|
401
625
|
damage_state_map: NumMap<DamageState, number>;
|
|
402
626
|
}
|
|
403
627
|
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
628
|
+
declare namespace ShipAttr {
|
|
629
|
+
export type Unknown = "Unknown";
|
|
630
|
+
export type Abyssal = "Abyssal";
|
|
631
|
+
export type NightCarrier = "NightCarrier";
|
|
632
|
+
export type Installation = "Installation";
|
|
633
|
+
export type RoyalNavy = "RoyalNavy";
|
|
634
|
+
export type Kai2 = "Kai2";
|
|
635
|
+
export type TurbineSpeedBonus = "TurbineSpeedBonus";
|
|
636
|
+
export type Pillbox = "Pillbox";
|
|
637
|
+
export type IsolatedIsland = "IsolatedIsland";
|
|
638
|
+
export type HarbourSummerPrincess = "HarbourSummerPrincess";
|
|
639
|
+
export type SupplyDepot = "SupplyDepot";
|
|
640
|
+
export type PtImp = "PtImp";
|
|
641
|
+
export type BattleshipSummerPrincess = "BattleshipSummerPrincess";
|
|
642
|
+
export type HeavyCruiserSummerPrincess = "HeavyCruiserSummerPrincess";
|
|
643
|
+
}
|
|
419
644
|
|
|
420
|
-
export type
|
|
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
|
-
export type Formation = SingleFormation | CombinedFormation;
|
|
645
|
+
export type ShipAttr =
|
|
646
|
+
| ShipAttr.Unknown
|
|
647
|
+
| ShipAttr.Abyssal
|
|
648
|
+
| ShipAttr.NightCarrier
|
|
649
|
+
| ShipAttr.Installation
|
|
650
|
+
| ShipAttr.RoyalNavy
|
|
651
|
+
| ShipAttr.Kai2
|
|
652
|
+
| ShipAttr.TurbineSpeedBonus
|
|
653
|
+
| ShipAttr.Pillbox
|
|
654
|
+
| ShipAttr.IsolatedIsland
|
|
655
|
+
| ShipAttr.HarbourSummerPrincess
|
|
656
|
+
| ShipAttr.SupplyDepot
|
|
657
|
+
| ShipAttr.PtImp
|
|
658
|
+
| ShipAttr.BattleshipSummerPrincess
|
|
659
|
+
| ShipAttr.HeavyCruiserSummerPrincess;
|
|
660
|
+
|
|
661
|
+
type __FormationCombinedFormation = CombinedFormation;
|
|
662
|
+
type __FormationSingleFormation = SingleFormation;
|
|
663
|
+
declare namespace Formation {
|
|
664
|
+
export type Single = __FormationSingleFormation;
|
|
665
|
+
export type Combined = __FormationCombinedFormation;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
export type Formation = Formation.Single | Formation.Combined;
|
|
669
|
+
|
|
670
|
+
declare namespace CombinedFormation {
|
|
671
|
+
export type Cruising1 = "Cruising1";
|
|
672
|
+
export type Cruising2 = "Cruising2";
|
|
673
|
+
export type Cruising3 = "Cruising3";
|
|
674
|
+
export type Cruising4 = "Cruising4";
|
|
675
|
+
}
|
|
452
676
|
|
|
453
677
|
export type CombinedFormation =
|
|
454
|
-
|
|
|
455
|
-
|
|
|
456
|
-
|
|
|
457
|
-
|
|
|
678
|
+
| CombinedFormation.Cruising1
|
|
679
|
+
| CombinedFormation.Cruising2
|
|
680
|
+
| CombinedFormation.Cruising3
|
|
681
|
+
| CombinedFormation.Cruising4;
|
|
682
|
+
|
|
683
|
+
declare namespace SingleFormation {
|
|
684
|
+
export type LineAhead = "LineAhead";
|
|
685
|
+
export type DoubleLine = "DoubleLine";
|
|
686
|
+
export type Diamond = "Diamond";
|
|
687
|
+
export type Echelon = "Echelon";
|
|
688
|
+
export type LineAbreast = "LineAbreast";
|
|
689
|
+
export type Vanguard = "Vanguard";
|
|
690
|
+
}
|
|
458
691
|
|
|
459
692
|
export type SingleFormation =
|
|
460
|
-
|
|
|
461
|
-
|
|
|
462
|
-
|
|
|
463
|
-
|
|
|
464
|
-
|
|
|
465
|
-
|
|
|
693
|
+
| SingleFormation.LineAhead
|
|
694
|
+
| SingleFormation.DoubleLine
|
|
695
|
+
| SingleFormation.Diamond
|
|
696
|
+
| SingleFormation.Echelon
|
|
697
|
+
| SingleFormation.LineAbreast
|
|
698
|
+
| SingleFormation.Vanguard;
|
|
699
|
+
|
|
700
|
+
export interface CustomPowerModifiers {
|
|
701
|
+
precap_mod?: AttackPowerModifier;
|
|
702
|
+
postcap_mod?: AttackPowerModifier;
|
|
703
|
+
basic_power_mod?: AttackPowerModifier;
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
export interface SpecialEnemyModifiers {
|
|
707
|
+
precap_general_mod: AttackPowerModifier;
|
|
708
|
+
stype_mod: AttackPowerModifier;
|
|
709
|
+
landing_craft_synergy_mod: AttackPowerModifier;
|
|
710
|
+
toku_daihatsu_tank_mod: AttackPowerModifier;
|
|
711
|
+
m4a1dd_mod: AttackPowerModifier;
|
|
712
|
+
honi_mod: AttackPowerModifier;
|
|
713
|
+
postcap_general_mod: AttackPowerModifier;
|
|
714
|
+
pt_mod: AttackPowerModifier;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
export interface AttackPowerModifier {
|
|
718
|
+
a?: number;
|
|
719
|
+
b?: number;
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
export interface AttackPower {
|
|
723
|
+
precap: number;
|
|
724
|
+
is_capped: boolean;
|
|
725
|
+
capped: number;
|
|
726
|
+
normal: number;
|
|
727
|
+
critical: number;
|
|
728
|
+
armor_penetration: number;
|
|
729
|
+
remaining_ammo_mod: number;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
export interface AttackPowerParams {
|
|
733
|
+
basic: number;
|
|
734
|
+
cap: number;
|
|
735
|
+
precap_mod: AttackPowerModifier;
|
|
736
|
+
postcap_mod: AttackPowerModifier;
|
|
737
|
+
ap_shell_mod: number | null;
|
|
738
|
+
carrier_power: number | null;
|
|
739
|
+
proficiency_critical_mod: number | null;
|
|
740
|
+
armor_penetration: number;
|
|
741
|
+
remaining_ammo_mod: number;
|
|
742
|
+
special_enemy_mods: SpecialEnemyModifiers;
|
|
743
|
+
custom_mods: CustomPowerModifiers;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
export interface SpecialEnemyModifiers {
|
|
747
|
+
precap_general_mod: AttackPowerModifier;
|
|
748
|
+
stype_mod: AttackPowerModifier;
|
|
749
|
+
landing_craft_synergy_mod: AttackPowerModifier;
|
|
750
|
+
toku_daihatsu_tank_mod: AttackPowerModifier;
|
|
751
|
+
m4a1dd_mod: AttackPowerModifier;
|
|
752
|
+
honi_mod: AttackPowerModifier;
|
|
753
|
+
postcap_general_mod: AttackPowerModifier;
|
|
754
|
+
pt_mod: AttackPowerModifier;
|
|
755
|
+
}
|
|
466
756
|
|
|
467
757
|
export interface CompAntiAirInfo {
|
|
468
758
|
fleet_adjusted_anti_air: number;
|
|
@@ -494,7 +784,90 @@ export interface AirstrikeContactChance {
|
|
|
494
784
|
total: number;
|
|
495
785
|
}
|
|
496
786
|
|
|
497
|
-
export type
|
|
787
|
+
export type SlotSizeVec = (number | null)[];
|
|
788
|
+
|
|
789
|
+
declare namespace Side {
|
|
790
|
+
export type Player = "Player";
|
|
791
|
+
export type Enemy = "Enemy";
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
export type Side = Side.Player | Side.Enemy;
|
|
795
|
+
|
|
796
|
+
declare namespace GearAttr {
|
|
797
|
+
export type Unknown = "Unknown";
|
|
798
|
+
export type Abyssal = "Abyssal";
|
|
799
|
+
export type HighAngleMount = "HighAngleMount";
|
|
800
|
+
export type NightFighter = "NightFighter";
|
|
801
|
+
export type NightAttacker = "NightAttacker";
|
|
802
|
+
export type HeavyBomber = "HeavyBomber";
|
|
803
|
+
export type MainGun = "MainGun";
|
|
804
|
+
export type Radar = "Radar";
|
|
805
|
+
export type SurfaceRadar = "SurfaceRadar";
|
|
806
|
+
export type AirRadar = "AirRadar";
|
|
807
|
+
export type DepthChargeProjector = "DepthChargeProjector";
|
|
808
|
+
export type SynergisticDepthCharge = "SynergisticDepthCharge";
|
|
809
|
+
export type AntiSubMortar = "AntiSubMortar";
|
|
810
|
+
export type AntiSubWeapon = "AntiSubWeapon";
|
|
811
|
+
export type AntiSubAircraft = "AntiSubAircraft";
|
|
812
|
+
export type LateModelBowTorpedo = "LateModelBowTorpedo";
|
|
813
|
+
export type Seaplane = "Seaplane";
|
|
814
|
+
export type CbAircraft = "CbAircraft";
|
|
815
|
+
export type LbAircraft = "LbAircraft";
|
|
816
|
+
export type JetAircraft = "JetAircraft";
|
|
817
|
+
export type Fighter = "Fighter";
|
|
818
|
+
export type Recon = "Recon";
|
|
819
|
+
export type ObservationSeaplane = "ObservationSeaplane";
|
|
820
|
+
export type CbFighterBomber = "CbFighterBomber";
|
|
821
|
+
export type AntiInstDiveBomber = "AntiInstDiveBomber";
|
|
822
|
+
export type NightRecon = "NightRecon";
|
|
823
|
+
export type CbSwordfish = "CbSwordfish";
|
|
824
|
+
export type SemiNightPlane = "SemiNightPlane";
|
|
825
|
+
export type HighAltitudeInterceptor = "HighAltitudeInterceptor";
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
export type GearAttr =
|
|
829
|
+
| GearAttr.Unknown
|
|
830
|
+
| GearAttr.Abyssal
|
|
831
|
+
| GearAttr.HighAngleMount
|
|
832
|
+
| GearAttr.NightFighter
|
|
833
|
+
| GearAttr.NightAttacker
|
|
834
|
+
| GearAttr.HeavyBomber
|
|
835
|
+
| GearAttr.MainGun
|
|
836
|
+
| GearAttr.Radar
|
|
837
|
+
| GearAttr.SurfaceRadar
|
|
838
|
+
| GearAttr.AirRadar
|
|
839
|
+
| GearAttr.DepthChargeProjector
|
|
840
|
+
| GearAttr.SynergisticDepthCharge
|
|
841
|
+
| GearAttr.AntiSubMortar
|
|
842
|
+
| GearAttr.AntiSubWeapon
|
|
843
|
+
| GearAttr.AntiSubAircraft
|
|
844
|
+
| GearAttr.LateModelBowTorpedo
|
|
845
|
+
| GearAttr.Seaplane
|
|
846
|
+
| GearAttr.CbAircraft
|
|
847
|
+
| GearAttr.LbAircraft
|
|
848
|
+
| GearAttr.JetAircraft
|
|
849
|
+
| GearAttr.Fighter
|
|
850
|
+
| GearAttr.Recon
|
|
851
|
+
| GearAttr.ObservationSeaplane
|
|
852
|
+
| GearAttr.CbFighterBomber
|
|
853
|
+
| GearAttr.AntiInstDiveBomber
|
|
854
|
+
| GearAttr.NightRecon
|
|
855
|
+
| GearAttr.CbSwordfish
|
|
856
|
+
| GearAttr.SemiNightPlane
|
|
857
|
+
| GearAttr.HighAltitudeInterceptor;
|
|
858
|
+
|
|
859
|
+
declare namespace FleetType {
|
|
860
|
+
export type Main = "Main";
|
|
861
|
+
export type Escort = "Escort";
|
|
862
|
+
export type RouteSup = "RouteSup";
|
|
863
|
+
export type BossSup = "BossSup";
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
export type FleetType =
|
|
867
|
+
| FleetType.Main
|
|
868
|
+
| FleetType.Escort
|
|
869
|
+
| FleetType.RouteSup
|
|
870
|
+
| FleetType.BossSup;
|
|
498
871
|
|
|
499
872
|
export interface MasterEquippable {
|
|
500
873
|
equip_stype: EquipStype[];
|
|
@@ -518,13 +891,33 @@ export interface EquipStype {
|
|
|
518
891
|
equip_type: number[];
|
|
519
892
|
}
|
|
520
893
|
|
|
894
|
+
type __NightBattleAttackTypeAswAttackType = AswAttackType;
|
|
895
|
+
type __NightBattleAttackTypeNightAttackType = NightAttackType;
|
|
896
|
+
declare namespace NightBattleAttackType {
|
|
897
|
+
export type NightAttack = {
|
|
898
|
+
t: "NightAttack";
|
|
899
|
+
c: __NightBattleAttackTypeNightAttackType;
|
|
900
|
+
};
|
|
901
|
+
export type Asw = { t: "Asw"; c: __NightBattleAttackTypeAswAttackType };
|
|
902
|
+
}
|
|
903
|
+
|
|
521
904
|
export type NightBattleAttackType =
|
|
522
|
-
|
|
|
523
|
-
|
|
|
905
|
+
| NightBattleAttackType.NightAttack
|
|
906
|
+
| NightBattleAttackType.Asw;
|
|
907
|
+
|
|
908
|
+
type __DayBattleAttackTypeAswAttackType = AswAttackType;
|
|
909
|
+
type __DayBattleAttackTypeShellingAttackType = ShellingAttackType;
|
|
910
|
+
declare namespace DayBattleAttackType {
|
|
911
|
+
export type Shelling = {
|
|
912
|
+
t: "Shelling";
|
|
913
|
+
c: __DayBattleAttackTypeShellingAttackType;
|
|
914
|
+
};
|
|
915
|
+
export type Asw = { t: "Asw"; c: __DayBattleAttackTypeAswAttackType };
|
|
916
|
+
}
|
|
524
917
|
|
|
525
918
|
export type DayBattleAttackType =
|
|
526
|
-
|
|
|
527
|
-
|
|
|
919
|
+
| DayBattleAttackType.Shelling
|
|
920
|
+
| DayBattleAttackType.Asw;
|
|
528
921
|
|
|
529
922
|
export interface AttackInfo<AttackType, Cutin> {
|
|
530
923
|
attack_type: AttackType;
|
|
@@ -549,7 +942,24 @@ export interface AttackStats {
|
|
|
549
942
|
|
|
550
943
|
export type ShipStateMap = Record<ShipKey, ShipState>;
|
|
551
944
|
|
|
552
|
-
|
|
945
|
+
declare namespace ShipKey {
|
|
946
|
+
export type s1 = "s1";
|
|
947
|
+
export type s2 = "s2";
|
|
948
|
+
export type s3 = "s3";
|
|
949
|
+
export type s4 = "s4";
|
|
950
|
+
export type s5 = "s5";
|
|
951
|
+
export type s6 = "s6";
|
|
952
|
+
export type s7 = "s7";
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
export type ShipKey =
|
|
956
|
+
| ShipKey.s1
|
|
957
|
+
| ShipKey.s2
|
|
958
|
+
| ShipKey.s3
|
|
959
|
+
| ShipKey.s4
|
|
960
|
+
| ShipKey.s5
|
|
961
|
+
| ShipKey.s6
|
|
962
|
+
| ShipKey.s7;
|
|
553
963
|
|
|
554
964
|
export interface OrgState {
|
|
555
965
|
id?: string;
|
|
@@ -572,7 +982,14 @@ export interface AirSquadronState extends GearVecState, SlotSizeVecState {
|
|
|
572
982
|
mode?: AirSquadronMode;
|
|
573
983
|
}
|
|
574
984
|
|
|
575
|
-
|
|
985
|
+
declare namespace AirSquadronMode {
|
|
986
|
+
export type Sortie = "Sortie";
|
|
987
|
+
export type AirDefense = "AirDefense";
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
export type AirSquadronMode =
|
|
991
|
+
| AirSquadronMode.Sortie
|
|
992
|
+
| AirSquadronMode.AirDefense;
|
|
576
993
|
|
|
577
994
|
export interface FleetState {
|
|
578
995
|
id?: string;
|
|
@@ -605,6 +1022,7 @@ export interface ShipState extends GearVecState, SlotSizeVecState {
|
|
|
605
1022
|
luck_mod?: number;
|
|
606
1023
|
day_gunfit_accuracy?: number;
|
|
607
1024
|
night_gunfit_accuracy?: number;
|
|
1025
|
+
custom_power_mods?: CustomPowerModifiers;
|
|
608
1026
|
}
|
|
609
1027
|
|
|
610
1028
|
export interface SlotSizeVecState {
|
|
@@ -631,29 +1049,6 @@ export interface GearState {
|
|
|
631
1049
|
stars?: number;
|
|
632
1050
|
}
|
|
633
1051
|
|
|
634
|
-
export type NightAttackType = "Normal" | "ArkRoyal" | "Carrier";
|
|
635
|
-
|
|
636
|
-
export type NightSpecialAttack =
|
|
637
|
-
| { NightCutin: NightCutin }
|
|
638
|
-
| { FleetCutin: FleetCutin };
|
|
639
|
-
|
|
640
|
-
export type NightCutin =
|
|
641
|
-
| "MainTorpRadar"
|
|
642
|
-
| "TorpLookoutRadar"
|
|
643
|
-
| "TorpTsloTorp"
|
|
644
|
-
| "TorpTsloDrum"
|
|
645
|
-
| "DoubleAttack"
|
|
646
|
-
| "TorpTorpMain"
|
|
647
|
-
| "TorpTorpTorp"
|
|
648
|
-
| "MainMainSec"
|
|
649
|
-
| "MainMainMain"
|
|
650
|
-
| "SubTorpTorp"
|
|
651
|
-
| "SubRadarTorp"
|
|
652
|
-
| "Cvci1_25"
|
|
653
|
-
| "Cvci1_20"
|
|
654
|
-
| "Cvci1_18"
|
|
655
|
-
| "Photobomber";
|
|
656
|
-
|
|
657
1052
|
export interface MasterGear {
|
|
658
1053
|
gear_id: number;
|
|
659
1054
|
name: string;
|
|
@@ -694,6 +1089,63 @@ export interface HitRateParams {
|
|
|
694
1089
|
hit_percentage_bonus: number;
|
|
695
1090
|
}
|
|
696
1091
|
|
|
1092
|
+
declare namespace NightAttackType {
|
|
1093
|
+
export type Normal = "Normal";
|
|
1094
|
+
export type ArkRoyal = "ArkRoyal";
|
|
1095
|
+
export type Carrier = "Carrier";
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
export type NightAttackType =
|
|
1099
|
+
| NightAttackType.Normal
|
|
1100
|
+
| NightAttackType.ArkRoyal
|
|
1101
|
+
| NightAttackType.Carrier;
|
|
1102
|
+
|
|
1103
|
+
type __NightSpecialAttackFleetCutin = FleetCutin;
|
|
1104
|
+
type __NightSpecialAttackNightCutin = NightCutin;
|
|
1105
|
+
declare namespace NightSpecialAttack {
|
|
1106
|
+
export type NightCutin = { NightCutin: __NightSpecialAttackNightCutin };
|
|
1107
|
+
export type FleetCutin = { FleetCutin: __NightSpecialAttackFleetCutin };
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
export type NightSpecialAttack =
|
|
1111
|
+
| NightSpecialAttack.NightCutin
|
|
1112
|
+
| NightSpecialAttack.FleetCutin;
|
|
1113
|
+
|
|
1114
|
+
declare namespace NightCutin {
|
|
1115
|
+
export type MainTorpRadar = "MainTorpRadar";
|
|
1116
|
+
export type TorpLookoutRadar = "TorpLookoutRadar";
|
|
1117
|
+
export type TorpTsloTorp = "TorpTsloTorp";
|
|
1118
|
+
export type TorpTsloDrum = "TorpTsloDrum";
|
|
1119
|
+
export type DoubleAttack = "DoubleAttack";
|
|
1120
|
+
export type TorpTorpMain = "TorpTorpMain";
|
|
1121
|
+
export type TorpTorpTorp = "TorpTorpTorp";
|
|
1122
|
+
export type MainMainSec = "MainMainSec";
|
|
1123
|
+
export type MainMainMain = "MainMainMain";
|
|
1124
|
+
export type SubTorpTorp = "SubTorpTorp";
|
|
1125
|
+
export type SubRadarTorp = "SubRadarTorp";
|
|
1126
|
+
export type Cvci1_25 = "Cvci1_25";
|
|
1127
|
+
export type Cvci1_20 = "Cvci1_20";
|
|
1128
|
+
export type Cvci1_18 = "Cvci1_18";
|
|
1129
|
+
export type Photobomber = "Photobomber";
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
export type NightCutin =
|
|
1133
|
+
| NightCutin.MainTorpRadar
|
|
1134
|
+
| NightCutin.TorpLookoutRadar
|
|
1135
|
+
| NightCutin.TorpTsloTorp
|
|
1136
|
+
| NightCutin.TorpTsloDrum
|
|
1137
|
+
| NightCutin.DoubleAttack
|
|
1138
|
+
| NightCutin.TorpTorpMain
|
|
1139
|
+
| NightCutin.TorpTorpTorp
|
|
1140
|
+
| NightCutin.MainMainSec
|
|
1141
|
+
| NightCutin.MainMainMain
|
|
1142
|
+
| NightCutin.SubTorpTorp
|
|
1143
|
+
| NightCutin.SubRadarTorp
|
|
1144
|
+
| NightCutin.Cvci1_25
|
|
1145
|
+
| NightCutin.Cvci1_20
|
|
1146
|
+
| NightCutin.Cvci1_18
|
|
1147
|
+
| NightCutin.Photobomber;
|
|
1148
|
+
|
|
697
1149
|
export interface BattleConfig {
|
|
698
1150
|
formation: Record<Formation, NestedFormationDef>;
|
|
699
1151
|
anti_air_cutin: Record<number, AntiAirCutinDef>;
|
|
@@ -725,9 +1177,18 @@ export interface AntiAirCutinDef {
|
|
|
725
1177
|
sequential: boolean | null;
|
|
726
1178
|
}
|
|
727
1179
|
|
|
1180
|
+
type __NestedFormationDefFormationDef = FormationDef;
|
|
1181
|
+
declare namespace NestedFormationDef {
|
|
1182
|
+
export type Normal = __NestedFormationDefFormationDef;
|
|
1183
|
+
export type Vanguard = {
|
|
1184
|
+
top_half: __NestedFormationDefFormationDef;
|
|
1185
|
+
bottom_half: __NestedFormationDefFormationDef;
|
|
1186
|
+
};
|
|
1187
|
+
}
|
|
1188
|
+
|
|
728
1189
|
export type NestedFormationDef =
|
|
729
|
-
|
|
|
730
|
-
|
|
|
1190
|
+
| NestedFormationDef.Normal
|
|
1191
|
+
| NestedFormationDef.Vanguard;
|
|
731
1192
|
|
|
732
1193
|
export interface FormationDef {
|
|
733
1194
|
tag: Formation;
|
|
@@ -779,6 +1240,31 @@ export interface MasterShip {
|
|
|
779
1240
|
|
|
780
1241
|
export type StatInterval = [number | null, number | null];
|
|
781
1242
|
|
|
1243
|
+
export type GearTypeIdArray = [number, number, number, number, number];
|
|
1244
|
+
|
|
1245
|
+
declare namespace ContactRank {
|
|
1246
|
+
export type Rank1 = "Rank1";
|
|
1247
|
+
export type Rank2 = "Rank2";
|
|
1248
|
+
export type Rank3 = "Rank3";
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
export type ContactRank =
|
|
1252
|
+
| ContactRank.Rank1
|
|
1253
|
+
| ContactRank.Rank2
|
|
1254
|
+
| ContactRank.Rank3;
|
|
1255
|
+
|
|
1256
|
+
export interface SimulatorResult {
|
|
1257
|
+
items: SimulatorResultItem[];
|
|
1258
|
+
sunk_vec: [number, number, number][];
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
export interface SimulatorResultItem {
|
|
1262
|
+
id: string;
|
|
1263
|
+
role: Role;
|
|
1264
|
+
index: number;
|
|
1265
|
+
damage_state_map: Record<DamageState, number>;
|
|
1266
|
+
}
|
|
1267
|
+
|
|
782
1268
|
export interface WarfareInfo {
|
|
783
1269
|
day: AttackInfo<DayBattleAttackType, DayCutin | null> | null;
|
|
784
1270
|
closing_torpedo: AttackInfo<null, null> | null;
|
|
@@ -802,44 +1288,6 @@ export interface WarfareAnalyzerShipEnvironment {
|
|
|
802
1288
|
formation: Formation;
|
|
803
1289
|
fleet_los_mod: number | null;
|
|
804
1290
|
night_situation: NightSituation;
|
|
805
|
-
custom_mods: CustomModifiers;
|
|
806
|
-
}
|
|
807
|
-
|
|
808
|
-
export type GearTypeIdArray = [number, number, number, number, number];
|
|
809
|
-
|
|
810
|
-
export type SlotSizeVec = (number | null)[];
|
|
811
|
-
|
|
812
|
-
export type Side = "Player" | "Enemy";
|
|
813
|
-
|
|
814
|
-
export type SpecialEnemyType =
|
|
815
|
-
| "None"
|
|
816
|
-
| "SoftSkinned"
|
|
817
|
-
| "Pillbox"
|
|
818
|
-
| "IsolatedIsland"
|
|
819
|
-
| "SupplyDepot"
|
|
820
|
-
| "HarbourSummerPrincess"
|
|
821
|
-
| "PtImp"
|
|
822
|
-
| "BattleshipSummerPrincess"
|
|
823
|
-
| "HeavyCruiserSummerPrincess";
|
|
824
|
-
|
|
825
|
-
export type MoraleState = "Sparkle" | "Normal" | "Orange" | "Red";
|
|
826
|
-
|
|
827
|
-
export type DamageState = "Normal" | "Shouha" | "Chuuha" | "Taiha" | "Sunk";
|
|
828
|
-
|
|
829
|
-
export type SpeedGroup = "A" | "B1" | "B2" | "C";
|
|
830
|
-
|
|
831
|
-
export type ContactRank = "Rank1" | "Rank2" | "Rank3";
|
|
832
|
-
|
|
833
|
-
export interface SimulatorResult {
|
|
834
|
-
items: SimulatorResultItem[];
|
|
835
|
-
sunk_vec: [number, number, number][];
|
|
836
|
-
}
|
|
837
|
-
|
|
838
|
-
export interface SimulatorResultItem {
|
|
839
|
-
id: string;
|
|
840
|
-
role: Role;
|
|
841
|
-
index: number;
|
|
842
|
-
damage_state_map: Record<DamageState, number>;
|
|
843
1291
|
}
|
|
844
1292
|
|
|
845
1293
|
export interface FleetNightCutinRateInfo {
|
|
@@ -1666,6 +2114,10 @@ export class Ship {
|
|
|
1666
2114
|
* @returns {ShipState}
|
|
1667
2115
|
*/
|
|
1668
2116
|
state(): ShipState;
|
|
2117
|
+
/**
|
|
2118
|
+
* @returns {CustomPowerModifiers}
|
|
2119
|
+
*/
|
|
2120
|
+
custom_power_mods(): CustomPowerModifiers;
|
|
1669
2121
|
/**
|
|
1670
2122
|
* @returns {ShipMeta}
|
|
1671
2123
|
*/
|