ps99-api 1.2.0 → 2.0.0
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/.idea/runConfigurations/test.xml +11 -0
- package/.idea/runConfigurations/test_changing.xml +11 -0
- package/.idea/runConfigurations/test_snapshot.xml +11 -0
- package/.idea/runConfigurations/test_snapshot_changing.xml +12 -0
- package/.idea/webResources.xml +14 -0
- package/.releaserc +13 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/ps99-api.d.ts +3 -3
- package/dist/ps99-api.js +2 -2
- package/dist/ps99-api.js.map +1 -1
- package/dist/responses/collection/achievement.d.ts +2 -9
- package/dist/responses/collection/boost.d.ts +2 -9
- package/dist/responses/collection/booth.d.ts +15 -22
- package/dist/responses/collection/box.d.ts +14 -21
- package/dist/responses/collection/buff.d.ts +2 -9
- package/dist/responses/collection/charm.d.ts +13 -20
- package/dist/responses/collection/collection-data.d.ts +9 -0
- package/dist/responses/collection/collection-data.js +3 -0
- package/dist/responses/collection/collection-data.js.map +1 -0
- package/dist/responses/collection/currency.d.ts +22 -29
- package/dist/responses/collection/egg.d.ts +25 -31
- package/dist/responses/collection/enchantment.d.ts +18 -25
- package/dist/responses/collection/fishing-rod.d.ts +9 -16
- package/dist/responses/collection/fruit.d.ts +15 -22
- package/dist/responses/collection/guild-battle.d.ts +6 -13
- package/dist/responses/collection/hoverboard.d.ts +27 -34
- package/dist/responses/collection/index.d.ts +7 -5
- package/dist/responses/collection/lootbox.d.ts +12 -19
- package/dist/responses/collection/mastery.d.ts +5 -12
- package/dist/responses/collection/merchant.d.ts +6 -13
- package/dist/responses/collection/misc-item.d.ts +10 -17
- package/dist/responses/collection/pet.d.ts +20 -27
- package/dist/responses/collection/potion.d.ts +17 -24
- package/dist/responses/collection/random-event.d.ts +9 -16
- package/dist/responses/collection/rank.d.ts +7 -22
- package/dist/responses/collection/rarity.d.ts +6 -13
- package/dist/responses/collection/rebirth.d.ts +4 -11
- package/dist/responses/collection/secret-room.d.ts +4 -41
- package/dist/responses/collection/seed.d.ts +47 -1
- package/dist/responses/collection/shovel.d.ts +4 -11
- package/dist/responses/collection/sprinkler.d.ts +14 -21
- package/dist/responses/collection/ultimate.d.ts +17 -23
- package/dist/responses/collection/upgrade.d.ts +26 -33
- package/dist/responses/collection/watering-can.d.ts +5 -12
- package/dist/responses/collection/world.d.ts +6 -13
- package/dist/responses/collection/zone-flag.d.ts +14 -21
- package/dist/responses/collection/zone.d.ts +25 -102
- package/dump-result.js +16 -3
- package/example-web/react2/package-lock.json +45 -8
- package/example-web/react2/package.json +4 -3
- package/example-web/react2/public/_redirects +1 -0
- package/example-web/react2/public/index.html +1 -1
- package/example-web/react2/public/service-worker.js +2 -1
- package/example-web/react2/src/App.tsx +26 -141
- package/example-web/react2/src/components/AchievementsComponent.tsx +34 -30
- package/example-web/react2/src/components/BoostsComponent.tsx +17 -31
- package/example-web/react2/src/components/BoothsComponent.tsx +25 -31
- package/example-web/react2/src/components/BoxesComponent.tsx +28 -31
- package/example-web/react2/src/components/BuffsComponent.tsx +19 -31
- package/example-web/react2/src/components/CharmsComponent.tsx +33 -38
- package/example-web/react2/src/components/CollectionConfigIndex.tsx +53 -0
- package/example-web/react2/src/components/CollectionsIndex.tsx +33 -0
- package/example-web/react2/src/components/CurrencyComponent.tsx +58 -31
- package/example-web/react2/src/components/DynamicCollectionConfigData.tsx +94 -0
- package/example-web/react2/src/components/EggsComponent.tsx +55 -32
- package/example-web/react2/src/components/EnchantsComponent.tsx +37 -40
- package/example-web/react2/src/components/FishingRodsComponent.tsx +35 -31
- package/example-web/react2/src/components/FruitsComponent.tsx +29 -37
- package/example-web/react2/src/components/GenericFetchComponent.tsx +53 -0
- package/example-web/react2/src/components/GuildBattlesComponent.tsx +70 -40
- package/example-web/react2/src/components/Header.tsx +27 -0
- package/example-web/react2/src/components/HomePage.tsx +14 -0
- package/example-web/react2/src/components/HoverboardsComponent.tsx +40 -31
- package/example-web/react2/src/components/ImageComponent.tsx +37 -19
- package/example-web/react2/src/components/LootboxesComponent.tsx +19 -31
- package/example-web/react2/src/components/MasteryComponent.tsx +48 -30
- package/example-web/react2/src/components/MerchantsComponent.tsx +39 -28
- package/example-web/react2/src/components/MiscItemsComponent.tsx +28 -46
- package/example-web/react2/src/components/PetsComponent.tsx +53 -34
- package/example-web/react2/src/components/PotionsComponent.tsx +42 -37
- package/example-web/react2/src/components/RandomEventsComponent.tsx +39 -32
- package/example-web/react2/src/components/RanksComponent.tsx +80 -29
- package/example-web/react2/src/components/RarityComponent.tsx +18 -27
- package/example-web/react2/src/components/RebirthsComponent.tsx +32 -29
- package/example-web/react2/src/components/SecretRoomsComponent.tsx +18 -28
- package/example-web/react2/src/components/SeedsComponent.tsx +66 -31
- package/example-web/react2/src/components/ShovelsComponent.tsx +22 -32
- package/example-web/react2/src/components/SprinklersComponent.tsx +23 -32
- package/example-web/react2/src/components/UltimatesComponent.tsx +29 -33
- package/example-web/react2/src/components/UpgradesComponent.tsx +68 -43
- package/example-web/react2/src/components/WateringCansComponent.tsx +25 -34
- package/example-web/react2/src/components/WorldsComponent.tsx +31 -29
- package/example-web/react2/src/components/ZoneFlagsComponent.tsx +27 -32
- package/example-web/react2/src/components/ZonesComponent.tsx +84 -29
- package/example-web/react2/src/index.tsx +4 -2
- package/example-web/react2/tsconfig.json +1 -1
- package/example-web/react2/webpack.config.js +2 -6
- package/package.json +5 -3
- package/src/__tests__/__snapshots__/ps99-api-changes.ts.snap +9852 -7851
- package/src/__tests__/__snapshots__/ps99-api-live.ts.snap +1313 -86
- package/src/__tests__/ps99-api-changes.ts +1 -1
- package/src/index.ts +1 -0
- package/src/ps99-api.ts +5 -5
- package/src/responses/collection/achievement.ts +12 -9
- package/src/responses/collection/boost.ts +9 -9
- package/src/responses/collection/booth.ts +17 -22
- package/src/responses/collection/box.ts +16 -21
- package/src/responses/collection/buff.ts +4 -9
- package/src/responses/collection/charm.ts +14 -20
- package/src/responses/collection/collection-data.ts +14 -0
- package/src/responses/collection/currency.ts +27 -29
- package/src/responses/collection/egg.ts +26 -31
- package/src/responses/collection/enchantment.ts +19 -25
- package/src/responses/collection/fishing-rod.ts +13 -16
- package/src/responses/collection/fruit.ts +16 -22
- package/src/responses/collection/guild-battle.ts +10 -13
- package/src/responses/collection/hoverboard.ts +31 -34
- package/src/responses/collection/index.ts +10 -6
- package/src/responses/collection/lootbox.ts +13 -19
- package/src/responses/collection/mastery.ts +6 -12
- package/src/responses/collection/merchant.ts +7 -13
- package/src/responses/collection/misc-item.ts +11 -17
- package/src/responses/collection/pet.ts +21 -27
- package/src/responses/collection/potion.ts +18 -24
- package/src/responses/collection/random-event.ts +13 -16
- package/src/responses/collection/rank.ts +8 -24
- package/src/responses/collection/rarity.ts +7 -13
- package/src/responses/collection/rebirth.ts +5 -11
- package/src/responses/collection/secret-room.ts +8 -44
- package/src/responses/collection/seed.ts +55 -0
- package/src/responses/collection/shovel.ts +5 -11
- package/src/responses/collection/sprinkler.ts +15 -21
- package/src/responses/collection/ultimate.ts +18 -23
- package/src/responses/collection/upgrade.ts +27 -33
- package/src/responses/collection/watering-can.ts +9 -12
- package/src/responses/collection/world.ts +7 -13
- package/src/responses/collection/zone-flag.ts +15 -21
- package/src/responses/collection/zone.ts +26 -119
- package/.release.rc +0 -8
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { CollectionData } from "./collection-data";
|
|
2
|
+
|
|
3
|
+
export type SeedData = CollectionData<"Seeds", SeedConfigData>;
|
|
4
|
+
|
|
5
|
+
export type SeedConfigData = {
|
|
6
|
+
Rarity: SeedRarity;
|
|
7
|
+
DisplayName: string;
|
|
8
|
+
Stages: any[];
|
|
9
|
+
LootTable: LootTableRoot[] | LootTableRoot;
|
|
10
|
+
Desc: string;
|
|
11
|
+
GrowTime: number;
|
|
12
|
+
Icon: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export type SeedRarity = {
|
|
16
|
+
RarityNumber: number;
|
|
17
|
+
Lootbag: unknown;
|
|
18
|
+
_id: string;
|
|
19
|
+
Color: unknown;
|
|
20
|
+
DisplayName: string;
|
|
21
|
+
Message: unknown;
|
|
22
|
+
ItemSlot: unknown;
|
|
23
|
+
Gradient: unknown;
|
|
24
|
+
Announce: boolean;
|
|
25
|
+
_script: unknown;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export type LootTableRoot = {
|
|
29
|
+
_caches: any[];
|
|
30
|
+
entries: LootTableEntry[];
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export interface LootTableEntry {
|
|
34
|
+
Value: LootTableValue;
|
|
35
|
+
Amount?: number;
|
|
36
|
+
Weight: number;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface LootTableValue {
|
|
40
|
+
_caches?: any[];
|
|
41
|
+
entries?: LootTableValue[];
|
|
42
|
+
_data?: LootTableData;
|
|
43
|
+
_stackKey?: RawStackKey;
|
|
44
|
+
_exactStackKey?: RawStackKey;
|
|
45
|
+
_maxAmount?: number;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/** use {@link JSON.parse} to parse into object of type {@link LootTableData} */
|
|
49
|
+
export type RawStackKey = string;
|
|
50
|
+
|
|
51
|
+
export interface LootTableData {
|
|
52
|
+
id: string;
|
|
53
|
+
tn?: number;
|
|
54
|
+
_am?: number;
|
|
55
|
+
}
|
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
configData: ShovelConfigData;
|
|
5
|
-
configName: string;
|
|
6
|
-
dateCreated: any;
|
|
7
|
-
dateModified: any;
|
|
8
|
-
hash: any;
|
|
9
|
-
};
|
|
1
|
+
import { CollectionData } from "./collection-data";
|
|
2
|
+
|
|
3
|
+
export type ShovelData = CollectionData<"Shovels", ShovelConfigData>;
|
|
10
4
|
|
|
11
5
|
export type ShovelConfigData = {
|
|
12
6
|
AssociatedItemID: string;
|
|
13
|
-
Desc: string;
|
|
14
7
|
DisplayName: string;
|
|
8
|
+
Model: unknown;
|
|
15
9
|
Icon: string;
|
|
16
|
-
|
|
10
|
+
Desc: string;
|
|
17
11
|
MerchantSalePrice?: number;
|
|
18
12
|
};
|
|
@@ -1,32 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
configData: SprinklerConfigData;
|
|
5
|
-
configName: string;
|
|
6
|
-
dateCreated: any;
|
|
7
|
-
dateModified: any;
|
|
8
|
-
hash: any;
|
|
9
|
-
};
|
|
1
|
+
import { CollectionData } from "./collection-data";
|
|
2
|
+
|
|
3
|
+
export type SprinklerData = CollectionData<"Sprinklers", SprinklerConfigData>;
|
|
10
4
|
|
|
11
5
|
export type SprinklerConfigData = {
|
|
6
|
+
Rarity: SprinklerRarity;
|
|
12
7
|
Color: string;
|
|
13
|
-
Desc: string;
|
|
14
8
|
Duration: number;
|
|
15
|
-
|
|
16
|
-
Model: any;
|
|
9
|
+
Desc: string;
|
|
17
10
|
Name: string;
|
|
18
|
-
|
|
11
|
+
Model: unknown;
|
|
12
|
+
Icon: string;
|
|
19
13
|
};
|
|
20
14
|
|
|
21
15
|
export type SprinklerRarity = {
|
|
22
|
-
Announce: boolean;
|
|
23
|
-
Color: any;
|
|
24
|
-
DisplayName: string;
|
|
25
|
-
Gradient: any;
|
|
26
|
-
ItemSlot: any;
|
|
27
|
-
Lootbag: any;
|
|
28
|
-
Message: any;
|
|
29
16
|
RarityNumber: number;
|
|
17
|
+
Lootbag: unknown;
|
|
30
18
|
_id: string;
|
|
31
|
-
|
|
19
|
+
Color: unknown;
|
|
20
|
+
DisplayName: string;
|
|
21
|
+
Message: unknown;
|
|
22
|
+
ItemSlot: unknown;
|
|
23
|
+
Gradient: unknown;
|
|
24
|
+
Announce: boolean;
|
|
25
|
+
_script: unknown;
|
|
32
26
|
};
|
|
@@ -1,36 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
configData: UltimateConfigData;
|
|
5
|
-
configName: string;
|
|
6
|
-
dateCreated: any;
|
|
7
|
-
dateModified: any;
|
|
8
|
-
hash: any;
|
|
9
|
-
};
|
|
1
|
+
import { CollectionData } from "./collection-data";
|
|
2
|
+
|
|
3
|
+
export type UltimateData = CollectionData<"Ultimates", UltimateConfigData>;
|
|
10
4
|
|
|
11
5
|
export type UltimateConfigData = {
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
Rarity: UltimateRarity;
|
|
7
|
+
TierToLevel: number[];
|
|
14
8
|
DisplayName: string;
|
|
15
|
-
FFlagName: string;
|
|
16
|
-
Icon: string;
|
|
17
9
|
LevelToTier: number[];
|
|
10
|
+
Desc: string;
|
|
11
|
+
Icon: string;
|
|
18
12
|
MaxTier: number;
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
Cooldown: unknown;
|
|
14
|
+
FFlagName: string;
|
|
21
15
|
Tradable?: boolean;
|
|
22
16
|
ProductId?: number;
|
|
17
|
+
NotAllowedInInstances?: boolean;
|
|
23
18
|
};
|
|
24
19
|
|
|
25
20
|
export type UltimateRarity = {
|
|
26
|
-
Announce: boolean;
|
|
27
|
-
Color: any;
|
|
28
|
-
DisplayName: string;
|
|
29
|
-
Gradient: any;
|
|
30
|
-
ItemSlot: any;
|
|
31
|
-
Lootbag: any;
|
|
32
|
-
Message: any;
|
|
33
21
|
RarityNumber: number;
|
|
22
|
+
Lootbag: unknown;
|
|
34
23
|
_id: string;
|
|
35
|
-
|
|
24
|
+
Color: unknown;
|
|
25
|
+
DisplayName: string;
|
|
26
|
+
Message: unknown;
|
|
27
|
+
ItemSlot: unknown;
|
|
28
|
+
Gradient: unknown;
|
|
29
|
+
Announce: boolean;
|
|
30
|
+
_script: unknown;
|
|
36
31
|
};
|
|
@@ -1,62 +1,56 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
configData: UpgradeConfigData;
|
|
5
|
-
configName: string;
|
|
6
|
-
dateCreated: any;
|
|
7
|
-
dateModified: any;
|
|
8
|
-
hash: any;
|
|
9
|
-
};
|
|
1
|
+
import { CollectionData } from "./collection-data";
|
|
2
|
+
|
|
3
|
+
export type UpgradeData = CollectionData<"Upgrades", UpgradeConfigData>;
|
|
10
4
|
|
|
11
5
|
export type UpgradeConfigData = {
|
|
6
|
+
RewardText: unknown;
|
|
7
|
+
TierPowers: number[];
|
|
12
8
|
Icon: string;
|
|
13
|
-
RewardText: any;
|
|
14
|
-
TierCosts: number[];
|
|
15
9
|
TierCurrencies: UpgradeTierCurrency[];
|
|
16
|
-
|
|
10
|
+
TierCosts: number[];
|
|
17
11
|
};
|
|
18
12
|
|
|
19
13
|
export type UpgradeTierCurrency = {
|
|
20
|
-
BagTiers: UpgradeBagTier[];
|
|
21
|
-
Desc: string;
|
|
22
|
-
DisplayName: string;
|
|
23
|
-
MaxAmount: number;
|
|
24
14
|
Rarity: UpgradeRarity;
|
|
25
|
-
Tiers: UpgradeTier[];
|
|
26
15
|
Tradable: boolean;
|
|
27
|
-
|
|
16
|
+
Tiers: UpgradeTier[];
|
|
17
|
+
DisplayName: string;
|
|
18
|
+
_script: unknown;
|
|
28
19
|
_index: number;
|
|
29
|
-
|
|
20
|
+
_id: string;
|
|
21
|
+
MaxAmount: number;
|
|
22
|
+
BagTiers: UpgradeBagTier[];
|
|
23
|
+
Desc: string;
|
|
30
24
|
};
|
|
31
25
|
|
|
32
26
|
export type UpgradeBagTier = {
|
|
33
|
-
image: string;
|
|
34
27
|
value: number;
|
|
28
|
+
image: string;
|
|
35
29
|
};
|
|
36
30
|
|
|
37
31
|
export type UpgradeRarity = {
|
|
38
|
-
Announce: boolean;
|
|
39
|
-
Color: any;
|
|
40
|
-
DisplayName: string;
|
|
41
|
-
Gradient: any;
|
|
42
|
-
ItemSlot: any;
|
|
43
|
-
Lootbag: any;
|
|
44
|
-
Message: any;
|
|
45
32
|
RarityNumber: number;
|
|
33
|
+
Lootbag: unknown;
|
|
46
34
|
_id: string;
|
|
47
|
-
|
|
35
|
+
Color: unknown;
|
|
36
|
+
DisplayName: string;
|
|
37
|
+
Message: unknown;
|
|
38
|
+
ItemSlot: unknown;
|
|
39
|
+
Gradient: unknown;
|
|
40
|
+
Announce: boolean;
|
|
41
|
+
_script: unknown;
|
|
48
42
|
};
|
|
49
43
|
|
|
50
44
|
export type UpgradeTier = {
|
|
51
|
-
|
|
45
|
+
orbImage: string;
|
|
52
46
|
imageOutline: string;
|
|
53
47
|
isBottom: boolean;
|
|
54
|
-
|
|
48
|
+
Order: number;
|
|
55
49
|
rainData: UpgradeRainData;
|
|
56
|
-
textColor: any;
|
|
57
|
-
tierName: string;
|
|
58
|
-
tinyImage: string;
|
|
59
50
|
value: number;
|
|
51
|
+
tinyImage: string;
|
|
52
|
+
tierName: string;
|
|
53
|
+
textColor: unknown;
|
|
60
54
|
};
|
|
61
55
|
|
|
62
56
|
export type UpgradeRainData = {
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
dateModified: any;
|
|
8
|
-
hash: any;
|
|
9
|
-
};
|
|
1
|
+
import { CollectionData } from "./collection-data";
|
|
2
|
+
|
|
3
|
+
export type WateringCanData = CollectionData<
|
|
4
|
+
"WateringCans",
|
|
5
|
+
WateringCanConfigData
|
|
6
|
+
>;
|
|
10
7
|
|
|
11
8
|
export type WateringCanConfigData = {
|
|
12
|
-
AssociatedItemID: string;
|
|
13
9
|
DisplayName: string;
|
|
14
|
-
|
|
15
|
-
Model:
|
|
10
|
+
AssociatedItemID: string;
|
|
11
|
+
Model: unknown;
|
|
16
12
|
PlantTimeMultiplier: number;
|
|
13
|
+
Icon: string;
|
|
17
14
|
PlantTimeMultiplierDuration: number;
|
|
18
15
|
};
|
|
@@ -1,19 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
configData: WorldConfigData;
|
|
5
|
-
configName: string;
|
|
6
|
-
dateCreated: any;
|
|
7
|
-
dateModified: any;
|
|
8
|
-
hash: any;
|
|
9
|
-
};
|
|
1
|
+
import { CollectionData } from "./collection-data";
|
|
2
|
+
|
|
3
|
+
export type WorldData = CollectionData<"Worlds", WorldConfigData>;
|
|
10
4
|
|
|
11
5
|
export type WorldConfigData = {
|
|
12
|
-
FallbackSpawnLocation: any;
|
|
13
|
-
Lighting: any;
|
|
14
|
-
MapName: string;
|
|
15
|
-
PlaceId: number;
|
|
16
6
|
SpawnId: string;
|
|
7
|
+
FallbackSpawnLocation: unknown;
|
|
8
|
+
Lighting: unknown;
|
|
9
|
+
PlaceId: number;
|
|
10
|
+
MapName: string;
|
|
17
11
|
WorldCurrency: string;
|
|
18
12
|
WorldNumber: number;
|
|
19
13
|
AdditionalMusic?: string[];
|
|
@@ -1,32 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
configData: ZoneFlagConfigData;
|
|
5
|
-
configName: string;
|
|
6
|
-
dateCreated: any;
|
|
7
|
-
dateModified: any;
|
|
8
|
-
hash: any;
|
|
9
|
-
};
|
|
1
|
+
import { CollectionData } from "./collection-data";
|
|
2
|
+
|
|
3
|
+
export type ZoneFlagData = CollectionData<"ZoneFlags", ZoneFlagConfigData>;
|
|
10
4
|
|
|
11
5
|
export type ZoneFlagConfigData = {
|
|
6
|
+
Rarity: ZoneFlagRarity;
|
|
12
7
|
Color: string;
|
|
13
|
-
Desc: string;
|
|
14
8
|
Duration: number;
|
|
15
|
-
|
|
16
|
-
Model: any;
|
|
9
|
+
Desc: string;
|
|
17
10
|
Name: string;
|
|
18
|
-
|
|
11
|
+
Model: unknown;
|
|
12
|
+
Icon: string;
|
|
19
13
|
};
|
|
20
14
|
|
|
21
15
|
export type ZoneFlagRarity = {
|
|
22
|
-
Announce: boolean;
|
|
23
|
-
Color: any;
|
|
24
|
-
DisplayName: string;
|
|
25
|
-
Gradient: any;
|
|
26
|
-
ItemSlot: any;
|
|
27
|
-
Lootbag: any;
|
|
28
|
-
Message: any;
|
|
29
16
|
RarityNumber: number;
|
|
17
|
+
Lootbag: unknown;
|
|
30
18
|
_id: string;
|
|
31
|
-
|
|
19
|
+
Color: unknown;
|
|
20
|
+
DisplayName: string;
|
|
21
|
+
Message: unknown;
|
|
22
|
+
ItemSlot: unknown;
|
|
23
|
+
Gradient: unknown;
|
|
24
|
+
Announce: boolean;
|
|
25
|
+
_script: unknown;
|
|
32
26
|
};
|
|
@@ -1,27 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
configData: ZoneConfigData;
|
|
5
|
-
configName: string;
|
|
6
|
-
dateCreated: any;
|
|
7
|
-
dateModified: any;
|
|
8
|
-
hash: any;
|
|
9
|
-
};
|
|
1
|
+
import { CollectionData } from "./collection-data";
|
|
2
|
+
|
|
3
|
+
export type ZoneData = CollectionData<"Zones", ZoneConfigData>;
|
|
10
4
|
|
|
11
5
|
export type ZoneConfigData = {
|
|
6
|
+
ZoneName: string;
|
|
12
7
|
Ambience?: ZoneAmbience;
|
|
13
|
-
|
|
8
|
+
Price?: number;
|
|
14
9
|
Currency: string;
|
|
15
10
|
GateHealth?: number;
|
|
11
|
+
ZoneNumber: number;
|
|
12
|
+
Breakables: ZoneBreakables;
|
|
16
13
|
MaximumAvailableEgg: number;
|
|
17
|
-
Price?: number;
|
|
18
14
|
WorldNumber: number;
|
|
19
|
-
ZoneFolder:
|
|
20
|
-
|
|
21
|
-
ZoneNumber: number;
|
|
22
|
-
ExtraDropTable: any;
|
|
15
|
+
ZoneFolder: unknown;
|
|
16
|
+
ExtraDropTable: unknown;
|
|
23
17
|
Lighting?: ZoneLighting;
|
|
24
|
-
Chests:
|
|
18
|
+
Chests: unknown;
|
|
25
19
|
RenderAdditionalZones?: number[];
|
|
26
20
|
CannonGroupId?: number;
|
|
27
21
|
QuestsRequired?: ZoneQuestsRequired[];
|
|
@@ -33,139 +27,52 @@ export type ZoneAmbience = {
|
|
|
33
27
|
SoundId: string;
|
|
34
28
|
};
|
|
35
29
|
|
|
36
|
-
export type ZoneBreakables = {
|
|
37
|
-
Easy?: ZoneEasy;
|
|
38
|
-
Main?: ZoneMain;
|
|
39
|
-
VIP?: ZoneVip;
|
|
40
|
-
Main_Ice?: ZoneMainIce;
|
|
41
|
-
Main_Magma?: ZoneMainMagma;
|
|
42
|
-
HQ?: ZoneHq;
|
|
43
|
-
};
|
|
30
|
+
export type ZoneBreakables = { [key: string]: ZoneDataAndSettings };
|
|
44
31
|
|
|
45
|
-
export type
|
|
46
|
-
Data:
|
|
47
|
-
Settings:
|
|
32
|
+
export type ZoneDataAndSettings = {
|
|
33
|
+
Data: ZoneTypeData[];
|
|
34
|
+
Settings: ZoneSettings;
|
|
48
35
|
};
|
|
49
36
|
|
|
50
|
-
export type
|
|
51
|
-
Type: string;
|
|
52
|
-
Weight: number;
|
|
53
|
-
WorldNumber: number;
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
export type ZoneEasySettings = {
|
|
57
|
-
Maximum: number;
|
|
58
|
-
RandomDiamondBreakables: boolean;
|
|
59
|
-
RespawnTime: number;
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
export type ZoneMain = {
|
|
63
|
-
Data: ZoneMainDaum[];
|
|
64
|
-
Settings: ZoneMainSettings;
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
export type ZoneMainDaum = {
|
|
37
|
+
export type ZoneTypeData = {
|
|
68
38
|
Type: string;
|
|
69
39
|
Weight: number;
|
|
70
40
|
WorldNumber?: number;
|
|
71
41
|
ZoneNumber?: number;
|
|
72
42
|
};
|
|
73
43
|
|
|
74
|
-
export type
|
|
44
|
+
export type ZoneSettings = {
|
|
75
45
|
Maximum: number;
|
|
76
|
-
RespawnTime: number;
|
|
77
46
|
RandomDiamondBreakables?: boolean;
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
export type ZoneVip = {
|
|
81
|
-
Data: ZoneVipDaum[];
|
|
82
|
-
Settings: ZoneVipSettings;
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
export type ZoneVipDaum = {
|
|
86
|
-
Type: string;
|
|
87
|
-
Weight: number;
|
|
88
|
-
WorldNumber?: number;
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
export type ZoneVipSettings = {
|
|
92
|
-
DaycareIgnore: boolean;
|
|
93
|
-
Maximum: number;
|
|
94
|
-
RespawnTime: number;
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
export type ZoneMainIce = {
|
|
98
|
-
Data: ZoneMainIceDaum[];
|
|
99
|
-
Settings: ZoneMainIceSettings;
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
export type ZoneMainIceDaum = {
|
|
103
|
-
Type: string;
|
|
104
|
-
Weight: number;
|
|
105
|
-
WorldNumber: number;
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
export type ZoneMainIceSettings = {
|
|
109
|
-
Maximum: number;
|
|
110
|
-
RespawnTime: number;
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
export type ZoneMainMagma = {
|
|
114
|
-
Data: ZoneMainMagmaDaum[];
|
|
115
|
-
Settings: ZoneMainMagmaSettings;
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
export type ZoneMainMagmaDaum = {
|
|
119
|
-
Type: string;
|
|
120
|
-
Weight: number;
|
|
121
|
-
WorldNumber?: number;
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
export type ZoneMainMagmaSettings = {
|
|
125
|
-
Maximum: number;
|
|
126
|
-
RespawnTime: number;
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
export type ZoneHq = {
|
|
130
|
-
Data: ZoneHqDaum[];
|
|
131
|
-
Settings: ZoneHqSettings;
|
|
132
|
-
};
|
|
133
|
-
|
|
134
|
-
export type ZoneHqDaum = {
|
|
135
|
-
Type: string;
|
|
136
|
-
Weight: number;
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
export type ZoneHqSettings = {
|
|
140
|
-
Maximum: number;
|
|
141
|
-
Requirement: any;
|
|
142
47
|
RespawnTime: number;
|
|
48
|
+
DaycareIgnore?: boolean;
|
|
49
|
+
Requirement?: unknown;
|
|
143
50
|
};
|
|
144
51
|
|
|
145
52
|
export type ZoneLighting = {
|
|
146
|
-
Ambient:
|
|
53
|
+
Ambient: unknown;
|
|
147
54
|
Atmosphere: ZoneAtmosphere;
|
|
148
55
|
Bloom: ZoneBloom;
|
|
149
56
|
Brightness: number;
|
|
150
57
|
ClockTime: number;
|
|
151
58
|
ColorCorrection: ZoneColorCorrection;
|
|
152
|
-
ColorShift_Bottom:
|
|
153
|
-
ColorShift_Top:
|
|
59
|
+
ColorShift_Bottom: unknown;
|
|
60
|
+
ColorShift_Top: unknown;
|
|
154
61
|
EnvironmentDiffuseScale: number;
|
|
155
62
|
EnvironmentSpecularScale: number;
|
|
156
63
|
ExposureCompensation: number;
|
|
157
|
-
FogColor:
|
|
64
|
+
FogColor: unknown;
|
|
158
65
|
FogEnd: number;
|
|
159
66
|
FogStart: number;
|
|
160
67
|
GeographicLatitude: number;
|
|
161
|
-
OutdoorAmbient:
|
|
68
|
+
OutdoorAmbient: unknown;
|
|
162
69
|
ShadowSoftness: number;
|
|
163
70
|
Sky: ZoneSky;
|
|
164
71
|
};
|
|
165
72
|
|
|
166
73
|
export type ZoneAtmosphere = {
|
|
167
|
-
Color:
|
|
168
|
-
Decay:
|
|
74
|
+
Color: unknown;
|
|
75
|
+
Decay: unknown;
|
|
169
76
|
Density: number;
|
|
170
77
|
Glare: number;
|
|
171
78
|
Haze: number;
|
|
@@ -184,7 +91,7 @@ export type ZoneColorCorrection = {
|
|
|
184
91
|
Contrast: number;
|
|
185
92
|
Enabled: boolean;
|
|
186
93
|
Saturation: number;
|
|
187
|
-
TintColor:
|
|
94
|
+
TintColor: unknown;
|
|
188
95
|
};
|
|
189
96
|
|
|
190
97
|
export type ZoneSky = {
|