fleethub-core 1.10.6 → 1.10.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 +82 -81
- 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 +82 -81
- package/pkg/fleethub_core_bg.js +1 -1
- package/pkg/fleethub_core_bg.wasm +0 -0
package/node/fleethub_core.d.ts
CHANGED
|
@@ -481,6 +481,31 @@ export type GearType =
|
|
|
481
481
|
| "CbRecon2"
|
|
482
482
|
| "SecondaryGun2";
|
|
483
483
|
|
|
484
|
+
export type Engagement = "GreenT" | "Parallel" | "HeadOn" | "RedT";
|
|
485
|
+
|
|
486
|
+
export interface CustomPowerModifiers {
|
|
487
|
+
precap_mod?: AttackPowerModifier;
|
|
488
|
+
postcap_mod?: AttackPowerModifier;
|
|
489
|
+
basic_power_mod?: AttackPowerModifier;
|
|
490
|
+
historical_mod?: AttackPowerModifier;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
export interface SpecialEnemyModifiers {
|
|
494
|
+
precap_general_mod: AttackPowerModifier;
|
|
495
|
+
stype_mod: AttackPowerModifier;
|
|
496
|
+
landing_craft_synergy_mod: AttackPowerModifier;
|
|
497
|
+
toku_daihatsu_tank_mod: AttackPowerModifier;
|
|
498
|
+
m4a1dd_mod: AttackPowerModifier;
|
|
499
|
+
honi_mod: AttackPowerModifier;
|
|
500
|
+
postcap_general_mod: AttackPowerModifier;
|
|
501
|
+
pt_mod: AttackPowerModifier;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
export interface AttackPowerModifier {
|
|
505
|
+
a?: number;
|
|
506
|
+
b?: number;
|
|
507
|
+
}
|
|
508
|
+
|
|
484
509
|
export type AirStateRank = "Rank0" | "Rank1" | "Rank2" | "Rank3";
|
|
485
510
|
|
|
486
511
|
export type AirState =
|
|
@@ -504,6 +529,32 @@ export interface SimulatorResultItem {
|
|
|
504
529
|
|
|
505
530
|
export type FhResult<T> = { Ok: T } | { Err: string };
|
|
506
531
|
|
|
532
|
+
export interface MasterGear {
|
|
533
|
+
gear_id: number;
|
|
534
|
+
name: string;
|
|
535
|
+
types: GearTypeIdArray;
|
|
536
|
+
special_type?: number;
|
|
537
|
+
max_hp?: number;
|
|
538
|
+
firepower?: number;
|
|
539
|
+
armor?: number;
|
|
540
|
+
torpedo?: number;
|
|
541
|
+
anti_air?: number;
|
|
542
|
+
speed?: number;
|
|
543
|
+
bombing?: number;
|
|
544
|
+
asw?: number;
|
|
545
|
+
los?: number;
|
|
546
|
+
luck?: number;
|
|
547
|
+
accuracy?: number;
|
|
548
|
+
evasion?: number;
|
|
549
|
+
range?: number;
|
|
550
|
+
radius?: number;
|
|
551
|
+
cost?: number;
|
|
552
|
+
improvable?: boolean;
|
|
553
|
+
ship_anti_air_resist?: number;
|
|
554
|
+
fleet_anti_air_resist?: number;
|
|
555
|
+
historical_aircraft_group?: number;
|
|
556
|
+
}
|
|
557
|
+
|
|
507
558
|
export interface AttackPower {
|
|
508
559
|
precap: number;
|
|
509
560
|
is_capped: boolean;
|
|
@@ -529,23 +580,6 @@ export interface AttackPowerParams {
|
|
|
529
580
|
custom_mods: CustomPowerModifiers;
|
|
530
581
|
}
|
|
531
582
|
|
|
532
|
-
export type ShipAttr =
|
|
533
|
-
| "Unknown"
|
|
534
|
-
| "Abyssal"
|
|
535
|
-
| "NightCarrier"
|
|
536
|
-
| "Installation"
|
|
537
|
-
| "RoyalNavy"
|
|
538
|
-
| "Kai2"
|
|
539
|
-
| "TurbineSpeedBonus"
|
|
540
|
-
| "Pillbox"
|
|
541
|
-
| "IsolatedIsland"
|
|
542
|
-
| "HarbourSummerPrincess"
|
|
543
|
-
| "SupplyDepot"
|
|
544
|
-
| "NewSupplyDepot"
|
|
545
|
-
| "PtImp"
|
|
546
|
-
| "BattleshipSummerPrincess"
|
|
547
|
-
| "HeavyCruiserSummerPrincess";
|
|
548
|
-
|
|
549
583
|
export interface ShipPosition {
|
|
550
584
|
org_type?: OrgType;
|
|
551
585
|
fleet_type?: FleetType;
|
|
@@ -553,7 +587,20 @@ export interface ShipPosition {
|
|
|
553
587
|
index?: number;
|
|
554
588
|
}
|
|
555
589
|
|
|
556
|
-
export
|
|
590
|
+
export interface CompMeta {
|
|
591
|
+
fleets: Record<FleetType, FleetMeta>;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
export interface FleetMeta {
|
|
595
|
+
id: string;
|
|
596
|
+
len: number;
|
|
597
|
+
ships: [string, ShipMeta | null][];
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
export interface ShipMeta {
|
|
601
|
+
id: string;
|
|
602
|
+
ship_id: number;
|
|
603
|
+
}
|
|
557
604
|
|
|
558
605
|
export interface MasterIBonuses {
|
|
559
606
|
shelling_power: MasterIBonusRule[];
|
|
@@ -580,34 +627,25 @@ export interface MasterIBonusRule {
|
|
|
580
627
|
formula: CompiledEvaler;
|
|
581
628
|
}
|
|
582
629
|
|
|
583
|
-
export interface MasterGear {
|
|
584
|
-
gear_id: number;
|
|
585
|
-
name: string;
|
|
586
|
-
types: GearTypeIdArray;
|
|
587
|
-
special_type?: number;
|
|
588
|
-
max_hp?: number;
|
|
589
|
-
firepower?: number;
|
|
590
|
-
armor?: number;
|
|
591
|
-
torpedo?: number;
|
|
592
|
-
anti_air?: number;
|
|
593
|
-
speed?: number;
|
|
594
|
-
bombing?: number;
|
|
595
|
-
asw?: number;
|
|
596
|
-
los?: number;
|
|
597
|
-
luck?: number;
|
|
598
|
-
accuracy?: number;
|
|
599
|
-
evasion?: number;
|
|
600
|
-
range?: number;
|
|
601
|
-
radius?: number;
|
|
602
|
-
cost?: number;
|
|
603
|
-
improvable?: boolean;
|
|
604
|
-
ship_anti_air_resist?: number;
|
|
605
|
-
fleet_anti_air_resist?: number;
|
|
606
|
-
historical_aircraft_group?: number;
|
|
607
|
-
}
|
|
608
|
-
|
|
609
630
|
export type CompiledEvaler = string;
|
|
610
631
|
|
|
632
|
+
export type ShipAttr =
|
|
633
|
+
| "Unknown"
|
|
634
|
+
| "Abyssal"
|
|
635
|
+
| "NightCarrier"
|
|
636
|
+
| "Installation"
|
|
637
|
+
| "RoyalNavy"
|
|
638
|
+
| "Kai2"
|
|
639
|
+
| "TurbineSpeedBonus"
|
|
640
|
+
| "Pillbox"
|
|
641
|
+
| "IsolatedIsland"
|
|
642
|
+
| "HarbourSummerPrincess"
|
|
643
|
+
| "SupplyDepot"
|
|
644
|
+
| "NewSupplyDepot"
|
|
645
|
+
| "PtImp"
|
|
646
|
+
| "BattleshipSummerPrincess"
|
|
647
|
+
| "HeavyCruiserSummerPrincess";
|
|
648
|
+
|
|
611
649
|
export type OrgType =
|
|
612
650
|
| "Single"
|
|
613
651
|
| "CarrierTaskForce"
|
|
@@ -616,21 +654,6 @@ export type OrgType =
|
|
|
616
654
|
| "EnemySingle"
|
|
617
655
|
| "EnemyCombined";
|
|
618
656
|
|
|
619
|
-
export interface CompMeta {
|
|
620
|
-
fleets: Record<FleetType, FleetMeta>;
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
export interface FleetMeta {
|
|
624
|
-
id: string;
|
|
625
|
-
len: number;
|
|
626
|
-
ships: [string, ShipMeta | null][];
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
export interface ShipMeta {
|
|
630
|
-
id: string;
|
|
631
|
-
ship_id: number;
|
|
632
|
-
}
|
|
633
|
-
|
|
634
657
|
export type GearAttr =
|
|
635
658
|
| "Unknown"
|
|
636
659
|
| "Abyssal"
|
|
@@ -690,28 +713,6 @@ export type ShellingType = "Normal" | "Aerial";
|
|
|
690
713
|
|
|
691
714
|
export type AswAttackType = "DepthCharge" | "Aerial";
|
|
692
715
|
|
|
693
|
-
export interface CustomPowerModifiers {
|
|
694
|
-
precap_mod?: AttackPowerModifier;
|
|
695
|
-
postcap_mod?: AttackPowerModifier;
|
|
696
|
-
basic_power_mod?: AttackPowerModifier;
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
export interface SpecialEnemyModifiers {
|
|
700
|
-
precap_general_mod: AttackPowerModifier;
|
|
701
|
-
stype_mod: AttackPowerModifier;
|
|
702
|
-
landing_craft_synergy_mod: AttackPowerModifier;
|
|
703
|
-
toku_daihatsu_tank_mod: AttackPowerModifier;
|
|
704
|
-
m4a1dd_mod: AttackPowerModifier;
|
|
705
|
-
honi_mod: AttackPowerModifier;
|
|
706
|
-
postcap_general_mod: AttackPowerModifier;
|
|
707
|
-
pt_mod: AttackPowerModifier;
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
export interface AttackPowerModifier {
|
|
711
|
-
a?: number;
|
|
712
|
-
b?: number;
|
|
713
|
-
}
|
|
714
|
-
|
|
715
716
|
export interface MasterData extends MasterBattleDefinitions {
|
|
716
717
|
created_at: number;
|
|
717
718
|
gears: MasterGear[];
|
package/node/fleethub_core.js
CHANGED
|
@@ -2893,7 +2893,7 @@ module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
|
2893
2893
|
return ret;
|
|
2894
2894
|
};
|
|
2895
2895
|
|
|
2896
|
-
module.exports.
|
|
2896
|
+
module.exports.__wbg_createEquipmentBonuses_b198a5bea84f03f2 = function(arg0, arg1) {
|
|
2897
2897
|
const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
|
|
2898
2898
|
return addHeapObject(ret);
|
|
2899
2899
|
};
|
|
Binary file
|
package/package.json
CHANGED
package/pkg/fleethub_core.d.ts
CHANGED
|
@@ -481,6 +481,31 @@ export type GearType =
|
|
|
481
481
|
| "CbRecon2"
|
|
482
482
|
| "SecondaryGun2";
|
|
483
483
|
|
|
484
|
+
export type Engagement = "GreenT" | "Parallel" | "HeadOn" | "RedT";
|
|
485
|
+
|
|
486
|
+
export interface CustomPowerModifiers {
|
|
487
|
+
precap_mod?: AttackPowerModifier;
|
|
488
|
+
postcap_mod?: AttackPowerModifier;
|
|
489
|
+
basic_power_mod?: AttackPowerModifier;
|
|
490
|
+
historical_mod?: AttackPowerModifier;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
export interface SpecialEnemyModifiers {
|
|
494
|
+
precap_general_mod: AttackPowerModifier;
|
|
495
|
+
stype_mod: AttackPowerModifier;
|
|
496
|
+
landing_craft_synergy_mod: AttackPowerModifier;
|
|
497
|
+
toku_daihatsu_tank_mod: AttackPowerModifier;
|
|
498
|
+
m4a1dd_mod: AttackPowerModifier;
|
|
499
|
+
honi_mod: AttackPowerModifier;
|
|
500
|
+
postcap_general_mod: AttackPowerModifier;
|
|
501
|
+
pt_mod: AttackPowerModifier;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
export interface AttackPowerModifier {
|
|
505
|
+
a?: number;
|
|
506
|
+
b?: number;
|
|
507
|
+
}
|
|
508
|
+
|
|
484
509
|
export type AirStateRank = "Rank0" | "Rank1" | "Rank2" | "Rank3";
|
|
485
510
|
|
|
486
511
|
export type AirState =
|
|
@@ -504,6 +529,32 @@ export interface SimulatorResultItem {
|
|
|
504
529
|
|
|
505
530
|
export type FhResult<T> = { Ok: T } | { Err: string };
|
|
506
531
|
|
|
532
|
+
export interface MasterGear {
|
|
533
|
+
gear_id: number;
|
|
534
|
+
name: string;
|
|
535
|
+
types: GearTypeIdArray;
|
|
536
|
+
special_type?: number;
|
|
537
|
+
max_hp?: number;
|
|
538
|
+
firepower?: number;
|
|
539
|
+
armor?: number;
|
|
540
|
+
torpedo?: number;
|
|
541
|
+
anti_air?: number;
|
|
542
|
+
speed?: number;
|
|
543
|
+
bombing?: number;
|
|
544
|
+
asw?: number;
|
|
545
|
+
los?: number;
|
|
546
|
+
luck?: number;
|
|
547
|
+
accuracy?: number;
|
|
548
|
+
evasion?: number;
|
|
549
|
+
range?: number;
|
|
550
|
+
radius?: number;
|
|
551
|
+
cost?: number;
|
|
552
|
+
improvable?: boolean;
|
|
553
|
+
ship_anti_air_resist?: number;
|
|
554
|
+
fleet_anti_air_resist?: number;
|
|
555
|
+
historical_aircraft_group?: number;
|
|
556
|
+
}
|
|
557
|
+
|
|
507
558
|
export interface AttackPower {
|
|
508
559
|
precap: number;
|
|
509
560
|
is_capped: boolean;
|
|
@@ -529,23 +580,6 @@ export interface AttackPowerParams {
|
|
|
529
580
|
custom_mods: CustomPowerModifiers;
|
|
530
581
|
}
|
|
531
582
|
|
|
532
|
-
export type ShipAttr =
|
|
533
|
-
| "Unknown"
|
|
534
|
-
| "Abyssal"
|
|
535
|
-
| "NightCarrier"
|
|
536
|
-
| "Installation"
|
|
537
|
-
| "RoyalNavy"
|
|
538
|
-
| "Kai2"
|
|
539
|
-
| "TurbineSpeedBonus"
|
|
540
|
-
| "Pillbox"
|
|
541
|
-
| "IsolatedIsland"
|
|
542
|
-
| "HarbourSummerPrincess"
|
|
543
|
-
| "SupplyDepot"
|
|
544
|
-
| "NewSupplyDepot"
|
|
545
|
-
| "PtImp"
|
|
546
|
-
| "BattleshipSummerPrincess"
|
|
547
|
-
| "HeavyCruiserSummerPrincess";
|
|
548
|
-
|
|
549
583
|
export interface ShipPosition {
|
|
550
584
|
org_type?: OrgType;
|
|
551
585
|
fleet_type?: FleetType;
|
|
@@ -553,7 +587,20 @@ export interface ShipPosition {
|
|
|
553
587
|
index?: number;
|
|
554
588
|
}
|
|
555
589
|
|
|
556
|
-
export
|
|
590
|
+
export interface CompMeta {
|
|
591
|
+
fleets: Record<FleetType, FleetMeta>;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
export interface FleetMeta {
|
|
595
|
+
id: string;
|
|
596
|
+
len: number;
|
|
597
|
+
ships: [string, ShipMeta | null][];
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
export interface ShipMeta {
|
|
601
|
+
id: string;
|
|
602
|
+
ship_id: number;
|
|
603
|
+
}
|
|
557
604
|
|
|
558
605
|
export interface MasterIBonuses {
|
|
559
606
|
shelling_power: MasterIBonusRule[];
|
|
@@ -580,34 +627,25 @@ export interface MasterIBonusRule {
|
|
|
580
627
|
formula: CompiledEvaler;
|
|
581
628
|
}
|
|
582
629
|
|
|
583
|
-
export interface MasterGear {
|
|
584
|
-
gear_id: number;
|
|
585
|
-
name: string;
|
|
586
|
-
types: GearTypeIdArray;
|
|
587
|
-
special_type?: number;
|
|
588
|
-
max_hp?: number;
|
|
589
|
-
firepower?: number;
|
|
590
|
-
armor?: number;
|
|
591
|
-
torpedo?: number;
|
|
592
|
-
anti_air?: number;
|
|
593
|
-
speed?: number;
|
|
594
|
-
bombing?: number;
|
|
595
|
-
asw?: number;
|
|
596
|
-
los?: number;
|
|
597
|
-
luck?: number;
|
|
598
|
-
accuracy?: number;
|
|
599
|
-
evasion?: number;
|
|
600
|
-
range?: number;
|
|
601
|
-
radius?: number;
|
|
602
|
-
cost?: number;
|
|
603
|
-
improvable?: boolean;
|
|
604
|
-
ship_anti_air_resist?: number;
|
|
605
|
-
fleet_anti_air_resist?: number;
|
|
606
|
-
historical_aircraft_group?: number;
|
|
607
|
-
}
|
|
608
|
-
|
|
609
630
|
export type CompiledEvaler = string;
|
|
610
631
|
|
|
632
|
+
export type ShipAttr =
|
|
633
|
+
| "Unknown"
|
|
634
|
+
| "Abyssal"
|
|
635
|
+
| "NightCarrier"
|
|
636
|
+
| "Installation"
|
|
637
|
+
| "RoyalNavy"
|
|
638
|
+
| "Kai2"
|
|
639
|
+
| "TurbineSpeedBonus"
|
|
640
|
+
| "Pillbox"
|
|
641
|
+
| "IsolatedIsland"
|
|
642
|
+
| "HarbourSummerPrincess"
|
|
643
|
+
| "SupplyDepot"
|
|
644
|
+
| "NewSupplyDepot"
|
|
645
|
+
| "PtImp"
|
|
646
|
+
| "BattleshipSummerPrincess"
|
|
647
|
+
| "HeavyCruiserSummerPrincess";
|
|
648
|
+
|
|
611
649
|
export type OrgType =
|
|
612
650
|
| "Single"
|
|
613
651
|
| "CarrierTaskForce"
|
|
@@ -616,21 +654,6 @@ export type OrgType =
|
|
|
616
654
|
| "EnemySingle"
|
|
617
655
|
| "EnemyCombined";
|
|
618
656
|
|
|
619
|
-
export interface CompMeta {
|
|
620
|
-
fleets: Record<FleetType, FleetMeta>;
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
export interface FleetMeta {
|
|
624
|
-
id: string;
|
|
625
|
-
len: number;
|
|
626
|
-
ships: [string, ShipMeta | null][];
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
export interface ShipMeta {
|
|
630
|
-
id: string;
|
|
631
|
-
ship_id: number;
|
|
632
|
-
}
|
|
633
|
-
|
|
634
657
|
export type GearAttr =
|
|
635
658
|
| "Unknown"
|
|
636
659
|
| "Abyssal"
|
|
@@ -690,28 +713,6 @@ export type ShellingType = "Normal" | "Aerial";
|
|
|
690
713
|
|
|
691
714
|
export type AswAttackType = "DepthCharge" | "Aerial";
|
|
692
715
|
|
|
693
|
-
export interface CustomPowerModifiers {
|
|
694
|
-
precap_mod?: AttackPowerModifier;
|
|
695
|
-
postcap_mod?: AttackPowerModifier;
|
|
696
|
-
basic_power_mod?: AttackPowerModifier;
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
export interface SpecialEnemyModifiers {
|
|
700
|
-
precap_general_mod: AttackPowerModifier;
|
|
701
|
-
stype_mod: AttackPowerModifier;
|
|
702
|
-
landing_craft_synergy_mod: AttackPowerModifier;
|
|
703
|
-
toku_daihatsu_tank_mod: AttackPowerModifier;
|
|
704
|
-
m4a1dd_mod: AttackPowerModifier;
|
|
705
|
-
honi_mod: AttackPowerModifier;
|
|
706
|
-
postcap_general_mod: AttackPowerModifier;
|
|
707
|
-
pt_mod: AttackPowerModifier;
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
export interface AttackPowerModifier {
|
|
711
|
-
a?: number;
|
|
712
|
-
b?: number;
|
|
713
|
-
}
|
|
714
|
-
|
|
715
716
|
export interface MasterData extends MasterBattleDefinitions {
|
|
716
717
|
created_at: number;
|
|
717
718
|
gears: MasterGear[];
|
package/pkg/fleethub_core_bg.js
CHANGED
|
@@ -2886,7 +2886,7 @@ export function __wbindgen_is_undefined(arg0) {
|
|
|
2886
2886
|
return ret;
|
|
2887
2887
|
};
|
|
2888
2888
|
|
|
2889
|
-
export function
|
|
2889
|
+
export function __wbg_createEquipmentBonuses_b198a5bea84f03f2(arg0, arg1) {
|
|
2890
2890
|
const ret = createEquipmentBonuses(takeObject(arg0), takeObject(arg1));
|
|
2891
2891
|
return addHeapObject(ret);
|
|
2892
2892
|
};
|
|
Binary file
|