fleethub-core 1.11.2 → 1.11.4
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 +56 -56
- package/node/fleethub_core.js +1 -1
- package/node/fleethub_core_bg.wasm +0 -0
- package/package.json +1 -1
- package/pkg/fleethub_core.d.ts +56 -56
- package/pkg/fleethub_core_bg.js +1 -1
- package/pkg/fleethub_core_bg.wasm +0 -0
package/node/fleethub_core.d.ts
CHANGED
|
@@ -8,6 +8,31 @@ export function parse_ship_conditions(value: ShipConditions): ShipConditions;
|
|
|
8
8
|
/**
|
|
9
9
|
*/
|
|
10
10
|
export function set_panic_hook(): void;
|
|
11
|
+
export interface AttackPower {
|
|
12
|
+
precap: number;
|
|
13
|
+
is_capped: boolean;
|
|
14
|
+
capped: number;
|
|
15
|
+
normal: number;
|
|
16
|
+
critical: number;
|
|
17
|
+
armor_penetration: number;
|
|
18
|
+
remaining_ammo_mod: number;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface AttackPowerParams {
|
|
22
|
+
basic: number;
|
|
23
|
+
cap: number;
|
|
24
|
+
precap_mod: AttackPowerModifier;
|
|
25
|
+
postcap_mod: AttackPowerModifier;
|
|
26
|
+
ap_shell_mod: number | null;
|
|
27
|
+
aerial_power: number | null;
|
|
28
|
+
proficiency_critical_mod: number;
|
|
29
|
+
armor_penetration: number;
|
|
30
|
+
remaining_ammo_mod: number;
|
|
31
|
+
special_enemy_mods: SpecialEnemyModifiers;
|
|
32
|
+
historical_mod: AttackPowerModifier;
|
|
33
|
+
custom_mods: CustomPowerModifiers;
|
|
34
|
+
}
|
|
35
|
+
|
|
11
36
|
export interface NodeAttackAnalyzerShipConfig extends NightFleetConditions {
|
|
12
37
|
formation?: Formation;
|
|
13
38
|
}
|
|
@@ -121,13 +146,6 @@ export interface OrgState {
|
|
|
121
146
|
|
|
122
147
|
export type FleetKey = "f1" | "f2" | "f3" | "f4";
|
|
123
148
|
|
|
124
|
-
export interface ShipPosition {
|
|
125
|
-
org_type?: OrgType;
|
|
126
|
-
fleet_type?: FleetType;
|
|
127
|
-
fleet_len?: number;
|
|
128
|
-
index?: number;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
149
|
export interface CompDayCutinAnalysis {
|
|
132
150
|
rank3_air_state: AirState;
|
|
133
151
|
rank2_air_state: AirState;
|
|
@@ -319,6 +337,28 @@ export interface FleetCutinAttackReport<T> extends AttackReport<T> {
|
|
|
319
337
|
power_mod: number;
|
|
320
338
|
}
|
|
321
339
|
|
|
340
|
+
export interface BattleConditions {
|
|
341
|
+
org_type: OrgType;
|
|
342
|
+
role: Role;
|
|
343
|
+
ship_index: number;
|
|
344
|
+
fleet_len: number;
|
|
345
|
+
formation: Formation;
|
|
346
|
+
fleet_los_mod: number | null;
|
|
347
|
+
night_conditions: NightFleetConditions;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
export interface NightConditions {
|
|
351
|
+
player?: NightFleetConditions;
|
|
352
|
+
enemy?: NightFleetConditions;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
export interface NightFleetConditions {
|
|
356
|
+
night_contact_rank?: ContactRank | null;
|
|
357
|
+
starshell_index?: number | null;
|
|
358
|
+
searchlight_index?: number | null;
|
|
359
|
+
activates_large_searchlight?: boolean;
|
|
360
|
+
}
|
|
361
|
+
|
|
322
362
|
export type SingleFormation =
|
|
323
363
|
| "LineAhead"
|
|
324
364
|
| "DoubleLine"
|
|
@@ -335,8 +375,6 @@ export type CombinedFormation =
|
|
|
335
375
|
|
|
336
376
|
export type Formation = SingleFormation | CombinedFormation;
|
|
337
377
|
|
|
338
|
-
export type SlotSizeVec = (number | null)[];
|
|
339
|
-
|
|
340
378
|
export type GearVecInput = GearInput[];
|
|
341
379
|
|
|
342
380
|
export interface GearInput {
|
|
@@ -433,28 +471,6 @@ export interface EquipStype {
|
|
|
433
471
|
equip_type: number[];
|
|
434
472
|
}
|
|
435
473
|
|
|
436
|
-
export interface BattleConditions {
|
|
437
|
-
org_type: OrgType;
|
|
438
|
-
role: Role;
|
|
439
|
-
ship_index: number;
|
|
440
|
-
fleet_len: number;
|
|
441
|
-
formation: Formation;
|
|
442
|
-
fleet_los_mod: number | null;
|
|
443
|
-
night_conditions: NightFleetConditions;
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
export interface NightConditions {
|
|
447
|
-
player?: NightFleetConditions;
|
|
448
|
-
enemy?: NightFleetConditions;
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
export interface NightFleetConditions {
|
|
452
|
-
night_contact_rank?: ContactRank | null;
|
|
453
|
-
starshell_index?: number | null;
|
|
454
|
-
searchlight_index?: number | null;
|
|
455
|
-
activates_large_searchlight?: boolean;
|
|
456
|
-
}
|
|
457
|
-
|
|
458
474
|
export type DayCutin =
|
|
459
475
|
| "Zuiun"
|
|
460
476
|
| "AirSea"
|
|
@@ -500,6 +516,8 @@ export type DayCutinLike = DayCutin | FleetCutin;
|
|
|
500
516
|
|
|
501
517
|
export type NightCutinLike = NightCutin | FleetCutin;
|
|
502
518
|
|
|
519
|
+
export type SlotSizeVec = (number | null)[];
|
|
520
|
+
|
|
503
521
|
export type SpeedGroup = "A" | "B1" | "B2" | "C";
|
|
504
522
|
|
|
505
523
|
export interface MoveShipPayload {
|
|
@@ -943,31 +961,6 @@ export interface MasterBattleDefinitions {
|
|
|
943
961
|
historical_bonuses?: HistoricalBonusDef[];
|
|
944
962
|
}
|
|
945
963
|
|
|
946
|
-
export interface AttackPower {
|
|
947
|
-
precap: number;
|
|
948
|
-
is_capped: boolean;
|
|
949
|
-
capped: number;
|
|
950
|
-
normal: number;
|
|
951
|
-
critical: number;
|
|
952
|
-
armor_penetration: number;
|
|
953
|
-
remaining_ammo_mod: number;
|
|
954
|
-
}
|
|
955
|
-
|
|
956
|
-
export interface AttackPowerParams {
|
|
957
|
-
basic: number;
|
|
958
|
-
cap: number;
|
|
959
|
-
precap_mod: AttackPowerModifier;
|
|
960
|
-
postcap_mod: AttackPowerModifier;
|
|
961
|
-
ap_shell_mod: number | null;
|
|
962
|
-
aerial_power: number | null;
|
|
963
|
-
proficiency_critical_mod: number;
|
|
964
|
-
armor_penetration: number;
|
|
965
|
-
remaining_ammo_mod: number;
|
|
966
|
-
special_enemy_mods: SpecialEnemyModifiers;
|
|
967
|
-
historical_mod: AttackPowerModifier;
|
|
968
|
-
custom_mods: CustomPowerModifiers;
|
|
969
|
-
}
|
|
970
|
-
|
|
971
964
|
export interface CompAnalyzerConfig {
|
|
972
965
|
engagement: Engagement;
|
|
973
966
|
formation: Formation;
|
|
@@ -1031,6 +1024,13 @@ export type ContactRank = "Rank1" | "Rank2" | "Rank3";
|
|
|
1031
1024
|
|
|
1032
1025
|
export type Engagement = "GreenT" | "Parallel" | "HeadOn" | "RedT";
|
|
1033
1026
|
|
|
1027
|
+
export interface ShipPosition {
|
|
1028
|
+
org_type?: OrgType;
|
|
1029
|
+
fleet_type?: FleetType;
|
|
1030
|
+
fleet_len?: number;
|
|
1031
|
+
index?: number;
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
1034
|
/**
|
|
1035
1035
|
*/
|
|
1036
1036
|
export class AirSquadron {
|
package/node/fleethub_core.js
CHANGED
|
@@ -2895,7 +2895,7 @@ module.exports.__wbg_ship_new = function(arg0) {
|
|
|
2895
2895
|
return addHeapObject(ret);
|
|
2896
2896
|
};
|
|
2897
2897
|
|
|
2898
|
-
module.exports.
|
|
2898
|
+
module.exports.__wbg_createEquipmentBonuses_26dd5eae954d3b6a = function(arg0, arg1) {
|
|
2899
2899
|
const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
|
|
2900
2900
|
return addHeapObject(ret);
|
|
2901
2901
|
};
|
|
Binary file
|
package/package.json
CHANGED
package/pkg/fleethub_core.d.ts
CHANGED
|
@@ -8,6 +8,31 @@ export function parse_ship_conditions(value: ShipConditions): ShipConditions;
|
|
|
8
8
|
/**
|
|
9
9
|
*/
|
|
10
10
|
export function set_panic_hook(): void;
|
|
11
|
+
export interface AttackPower {
|
|
12
|
+
precap: number;
|
|
13
|
+
is_capped: boolean;
|
|
14
|
+
capped: number;
|
|
15
|
+
normal: number;
|
|
16
|
+
critical: number;
|
|
17
|
+
armor_penetration: number;
|
|
18
|
+
remaining_ammo_mod: number;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface AttackPowerParams {
|
|
22
|
+
basic: number;
|
|
23
|
+
cap: number;
|
|
24
|
+
precap_mod: AttackPowerModifier;
|
|
25
|
+
postcap_mod: AttackPowerModifier;
|
|
26
|
+
ap_shell_mod: number | null;
|
|
27
|
+
aerial_power: number | null;
|
|
28
|
+
proficiency_critical_mod: number;
|
|
29
|
+
armor_penetration: number;
|
|
30
|
+
remaining_ammo_mod: number;
|
|
31
|
+
special_enemy_mods: SpecialEnemyModifiers;
|
|
32
|
+
historical_mod: AttackPowerModifier;
|
|
33
|
+
custom_mods: CustomPowerModifiers;
|
|
34
|
+
}
|
|
35
|
+
|
|
11
36
|
export interface NodeAttackAnalyzerShipConfig extends NightFleetConditions {
|
|
12
37
|
formation?: Formation;
|
|
13
38
|
}
|
|
@@ -121,13 +146,6 @@ export interface OrgState {
|
|
|
121
146
|
|
|
122
147
|
export type FleetKey = "f1" | "f2" | "f3" | "f4";
|
|
123
148
|
|
|
124
|
-
export interface ShipPosition {
|
|
125
|
-
org_type?: OrgType;
|
|
126
|
-
fleet_type?: FleetType;
|
|
127
|
-
fleet_len?: number;
|
|
128
|
-
index?: number;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
149
|
export interface CompDayCutinAnalysis {
|
|
132
150
|
rank3_air_state: AirState;
|
|
133
151
|
rank2_air_state: AirState;
|
|
@@ -319,6 +337,28 @@ export interface FleetCutinAttackReport<T> extends AttackReport<T> {
|
|
|
319
337
|
power_mod: number;
|
|
320
338
|
}
|
|
321
339
|
|
|
340
|
+
export interface BattleConditions {
|
|
341
|
+
org_type: OrgType;
|
|
342
|
+
role: Role;
|
|
343
|
+
ship_index: number;
|
|
344
|
+
fleet_len: number;
|
|
345
|
+
formation: Formation;
|
|
346
|
+
fleet_los_mod: number | null;
|
|
347
|
+
night_conditions: NightFleetConditions;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
export interface NightConditions {
|
|
351
|
+
player?: NightFleetConditions;
|
|
352
|
+
enemy?: NightFleetConditions;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
export interface NightFleetConditions {
|
|
356
|
+
night_contact_rank?: ContactRank | null;
|
|
357
|
+
starshell_index?: number | null;
|
|
358
|
+
searchlight_index?: number | null;
|
|
359
|
+
activates_large_searchlight?: boolean;
|
|
360
|
+
}
|
|
361
|
+
|
|
322
362
|
export type SingleFormation =
|
|
323
363
|
| "LineAhead"
|
|
324
364
|
| "DoubleLine"
|
|
@@ -335,8 +375,6 @@ export type CombinedFormation =
|
|
|
335
375
|
|
|
336
376
|
export type Formation = SingleFormation | CombinedFormation;
|
|
337
377
|
|
|
338
|
-
export type SlotSizeVec = (number | null)[];
|
|
339
|
-
|
|
340
378
|
export type GearVecInput = GearInput[];
|
|
341
379
|
|
|
342
380
|
export interface GearInput {
|
|
@@ -433,28 +471,6 @@ export interface EquipStype {
|
|
|
433
471
|
equip_type: number[];
|
|
434
472
|
}
|
|
435
473
|
|
|
436
|
-
export interface BattleConditions {
|
|
437
|
-
org_type: OrgType;
|
|
438
|
-
role: Role;
|
|
439
|
-
ship_index: number;
|
|
440
|
-
fleet_len: number;
|
|
441
|
-
formation: Formation;
|
|
442
|
-
fleet_los_mod: number | null;
|
|
443
|
-
night_conditions: NightFleetConditions;
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
export interface NightConditions {
|
|
447
|
-
player?: NightFleetConditions;
|
|
448
|
-
enemy?: NightFleetConditions;
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
export interface NightFleetConditions {
|
|
452
|
-
night_contact_rank?: ContactRank | null;
|
|
453
|
-
starshell_index?: number | null;
|
|
454
|
-
searchlight_index?: number | null;
|
|
455
|
-
activates_large_searchlight?: boolean;
|
|
456
|
-
}
|
|
457
|
-
|
|
458
474
|
export type DayCutin =
|
|
459
475
|
| "Zuiun"
|
|
460
476
|
| "AirSea"
|
|
@@ -500,6 +516,8 @@ export type DayCutinLike = DayCutin | FleetCutin;
|
|
|
500
516
|
|
|
501
517
|
export type NightCutinLike = NightCutin | FleetCutin;
|
|
502
518
|
|
|
519
|
+
export type SlotSizeVec = (number | null)[];
|
|
520
|
+
|
|
503
521
|
export type SpeedGroup = "A" | "B1" | "B2" | "C";
|
|
504
522
|
|
|
505
523
|
export interface MoveShipPayload {
|
|
@@ -943,31 +961,6 @@ export interface MasterBattleDefinitions {
|
|
|
943
961
|
historical_bonuses?: HistoricalBonusDef[];
|
|
944
962
|
}
|
|
945
963
|
|
|
946
|
-
export interface AttackPower {
|
|
947
|
-
precap: number;
|
|
948
|
-
is_capped: boolean;
|
|
949
|
-
capped: number;
|
|
950
|
-
normal: number;
|
|
951
|
-
critical: number;
|
|
952
|
-
armor_penetration: number;
|
|
953
|
-
remaining_ammo_mod: number;
|
|
954
|
-
}
|
|
955
|
-
|
|
956
|
-
export interface AttackPowerParams {
|
|
957
|
-
basic: number;
|
|
958
|
-
cap: number;
|
|
959
|
-
precap_mod: AttackPowerModifier;
|
|
960
|
-
postcap_mod: AttackPowerModifier;
|
|
961
|
-
ap_shell_mod: number | null;
|
|
962
|
-
aerial_power: number | null;
|
|
963
|
-
proficiency_critical_mod: number;
|
|
964
|
-
armor_penetration: number;
|
|
965
|
-
remaining_ammo_mod: number;
|
|
966
|
-
special_enemy_mods: SpecialEnemyModifiers;
|
|
967
|
-
historical_mod: AttackPowerModifier;
|
|
968
|
-
custom_mods: CustomPowerModifiers;
|
|
969
|
-
}
|
|
970
|
-
|
|
971
964
|
export interface CompAnalyzerConfig {
|
|
972
965
|
engagement: Engagement;
|
|
973
966
|
formation: Formation;
|
|
@@ -1031,6 +1024,13 @@ export type ContactRank = "Rank1" | "Rank2" | "Rank3";
|
|
|
1031
1024
|
|
|
1032
1025
|
export type Engagement = "GreenT" | "Parallel" | "HeadOn" | "RedT";
|
|
1033
1026
|
|
|
1027
|
+
export interface ShipPosition {
|
|
1028
|
+
org_type?: OrgType;
|
|
1029
|
+
fleet_type?: FleetType;
|
|
1030
|
+
fleet_len?: number;
|
|
1031
|
+
index?: number;
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
1034
|
/**
|
|
1035
1035
|
*/
|
|
1036
1036
|
export class AirSquadron {
|
package/pkg/fleethub_core_bg.js
CHANGED
|
@@ -2893,7 +2893,7 @@ export function __wbg_ship_new(arg0) {
|
|
|
2893
2893
|
return addHeapObject(ret);
|
|
2894
2894
|
};
|
|
2895
2895
|
|
|
2896
|
-
export function
|
|
2896
|
+
export function __wbg_createEquipmentBonuses_26dd5eae954d3b6a(arg0, arg1) {
|
|
2897
2897
|
const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
|
|
2898
2898
|
return addHeapObject(ret);
|
|
2899
2899
|
};
|
|
Binary file
|