ps99-api 1.2.0 → 2.1.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 +2 -0
- package/dist/index.js +2 -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 +8 -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/xp-potion.d.ts +23 -0
- package/dist/responses/collection/xp-potion.js +3 -0
- package/dist/responses/collection/xp-potion.js.map +1 -0
- 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 +22 -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 +128 -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 +38 -16
- 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/XPPotionsComponent.tsx +28 -0
- 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 +24970 -20030
- package/src/__tests__/__snapshots__/ps99-api-live.ts.snap +6947 -5010
- package/src/__tests__/ps99-api-changes.ts +1 -1
- package/src/__tests__/ps99-api-live.ts +5 -0
- package/src/index.ts +2 -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 +12 -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/xp-potion.ts +26 -0
- package/src/responses/collection/zone-flag.ts +15 -21
- package/src/responses/collection/zone.ts +26 -119
- package/.release.rc +0 -8
|
@@ -1,34 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
collection: "Fruits";
|
|
4
|
-
configData: FruitConfigData;
|
|
5
|
-
configName: string;
|
|
6
|
-
dateCreated: any;
|
|
7
|
-
dateModified: any;
|
|
8
|
-
hash: any;
|
|
9
|
-
};
|
|
1
|
+
import { CollectionData } from "./collection-data";
|
|
2
|
+
export type FruitData = CollectionData<"Fruits", FruitConfigData>;
|
|
10
3
|
export type FruitConfigData = {
|
|
11
|
-
|
|
12
|
-
Desc?: string;
|
|
13
|
-
DisplayName: string;
|
|
4
|
+
Rarity: FruitRarity;
|
|
14
5
|
Duration: number;
|
|
15
|
-
|
|
6
|
+
DisplayName: string;
|
|
16
7
|
IgnoreFruitMachine?: boolean;
|
|
17
|
-
|
|
8
|
+
Desc?: string;
|
|
9
|
+
Icon: string;
|
|
10
|
+
Boost: FruitBoost[];
|
|
18
11
|
};
|
|
19
12
|
export type FruitBoost = {
|
|
20
13
|
Amount: number;
|
|
21
14
|
Type: string;
|
|
22
15
|
};
|
|
23
16
|
export type FruitRarity = {
|
|
24
|
-
Announce: boolean;
|
|
25
|
-
Color: any;
|
|
26
|
-
DisplayName: string;
|
|
27
|
-
Gradient: any;
|
|
28
|
-
ItemSlot: any;
|
|
29
|
-
Lootbag: any;
|
|
30
|
-
Message: any;
|
|
31
17
|
RarityNumber: number;
|
|
18
|
+
Lootbag: unknown;
|
|
32
19
|
_id: string;
|
|
33
|
-
|
|
20
|
+
Color: unknown;
|
|
21
|
+
DisplayName: string;
|
|
22
|
+
Message: unknown;
|
|
23
|
+
ItemSlot: unknown;
|
|
24
|
+
Gradient: unknown;
|
|
25
|
+
Announce: boolean;
|
|
26
|
+
_script: unknown;
|
|
34
27
|
};
|
|
@@ -1,23 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
collection: "GuildBattles";
|
|
4
|
-
configData: GuildBattleConfigData;
|
|
5
|
-
configName: string;
|
|
6
|
-
dateCreated: any;
|
|
7
|
-
dateModified: any;
|
|
8
|
-
hash: any;
|
|
9
|
-
};
|
|
1
|
+
import { CollectionData } from "./collection-data";
|
|
2
|
+
export type GuildBattleData = CollectionData<"GuildBattles", GuildBattleConfigData>;
|
|
10
3
|
export type GuildBattleConfigData = {
|
|
11
|
-
FinishTime: number;
|
|
12
4
|
PlacementRewards?: GuildBattlePlacementReward[];
|
|
13
|
-
|
|
14
|
-
StartTime: number;
|
|
5
|
+
FinishTime: number;
|
|
15
6
|
Title: string;
|
|
7
|
+
StartTime: number;
|
|
8
|
+
Rewards: GuildBattleRewards;
|
|
16
9
|
HasGoals?: boolean;
|
|
17
10
|
};
|
|
18
11
|
export type GuildBattlePlacementReward = {
|
|
19
|
-
Best: number;
|
|
20
12
|
Item: GuildBattleItem;
|
|
13
|
+
Best: number;
|
|
21
14
|
Worst: number;
|
|
22
15
|
};
|
|
23
16
|
export type GuildBattleItem = {
|
|
@@ -1,47 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
collection: "Hoverboards";
|
|
4
|
-
configData: HoverboardConfigData;
|
|
5
|
-
configName: string;
|
|
6
|
-
dateCreated: any;
|
|
7
|
-
dateModified: any;
|
|
8
|
-
hash: any;
|
|
9
|
-
};
|
|
1
|
+
import { CollectionData } from "./collection-data";
|
|
2
|
+
export type HoverboardData = CollectionData<"Hoverboards", HoverboardConfigData>;
|
|
10
3
|
export type HoverboardConfigData = {
|
|
11
|
-
CanBeShiny?: boolean;
|
|
12
|
-
Desc: string;
|
|
13
|
-
DisplayName: string;
|
|
14
|
-
Icon: string;
|
|
15
4
|
Rarity: HoverboardRarity;
|
|
16
|
-
ShinyParticleScale?: number;
|
|
17
|
-
Sounds: any;
|
|
18
5
|
Tradable?: boolean;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
6
|
+
DisplayName: string;
|
|
7
|
+
Sounds: unknown;
|
|
8
|
+
ShinyParticleScale?: number;
|
|
9
|
+
Desc: string;
|
|
10
|
+
CanBeShiny?: boolean;
|
|
11
|
+
Icon: string;
|
|
12
|
+
Callback: unknown;
|
|
22
13
|
HoverHeight?: number;
|
|
23
|
-
ProductId?: number;
|
|
24
14
|
RotationLimit?: number;
|
|
25
|
-
|
|
26
|
-
|
|
15
|
+
ProductId?: number;
|
|
16
|
+
Animation?: number;
|
|
17
|
+
BobRate?: number;
|
|
27
18
|
PitchScale?: number;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
IdleVolume?: number;
|
|
19
|
+
MaxRoll?: number;
|
|
20
|
+
DefaultJumpSpeedBoost?: number;
|
|
21
|
+
Animator: unknown;
|
|
22
|
+
Setup: unknown;
|
|
33
23
|
IdleVolumeSpeedScale?: number;
|
|
24
|
+
IdlePitchScale?: number;
|
|
25
|
+
BlockcastScale?: number;
|
|
34
26
|
SkateMode?: boolean;
|
|
27
|
+
IdleVolume?: number;
|
|
35
28
|
};
|
|
36
29
|
export type HoverboardRarity = {
|
|
37
|
-
Announce: boolean;
|
|
38
|
-
Color: any;
|
|
39
|
-
DisplayName: string;
|
|
40
|
-
Gradient: any;
|
|
41
|
-
ItemSlot: any;
|
|
42
|
-
Lootbag: any;
|
|
43
|
-
Message: any;
|
|
44
30
|
RarityNumber: number;
|
|
31
|
+
Lootbag: unknown;
|
|
45
32
|
_id: string;
|
|
46
|
-
|
|
33
|
+
Color: unknown;
|
|
34
|
+
DisplayName: string;
|
|
35
|
+
Message: unknown;
|
|
36
|
+
ItemSlot: unknown;
|
|
37
|
+
Gradient: unknown;
|
|
38
|
+
Announce: boolean;
|
|
39
|
+
_script: unknown;
|
|
47
40
|
};
|
|
@@ -21,17 +21,20 @@ import { RandomEventData } from "./random-event";
|
|
|
21
21
|
import { RankData } from "./rank";
|
|
22
22
|
import { RarityData } from "./rarity";
|
|
23
23
|
import { RebirthData } from "./rebirth";
|
|
24
|
-
import {
|
|
24
|
+
import { SeedData } from "./seed";
|
|
25
|
+
import { SecretRoomData } from "./secret-room";
|
|
25
26
|
import { ShovelData } from "./shovel";
|
|
26
27
|
import { SprinklerData } from "./sprinkler";
|
|
27
28
|
import { UltimateData } from "./ultimate";
|
|
28
29
|
import { UpgradeData } from "./upgrade";
|
|
29
30
|
import { WateringCanData } from "./watering-can";
|
|
30
31
|
import { WorldData } from "./world";
|
|
32
|
+
import { XPPotionData } from "./xp-potion";
|
|
31
33
|
import { ZoneFlagData } from "./zone-flag";
|
|
32
34
|
import { ZoneData } from "./zone";
|
|
33
|
-
export type
|
|
34
|
-
export type
|
|
35
|
-
export type
|
|
35
|
+
export type Collections = AchievementData | BoostData | BoothData | BoxData | BuffData | CharmData | CurrencyData | EggData | EnchantmentData | FishingRodData | FruitData | GuildBattleData | HoverboardData | LootboxData | MasteryData | MerchantData | MiscItemData | PetData | PotionData | RandomEventData | RankData | RarityData | RebirthData | SecretRoomData | SeedData | ShovelData | SprinklerData | UltimateData | UpgradeData | WateringCanData | WorldData | XPPotionData | ZoneFlagData | ZoneData;
|
|
36
|
+
export type CollectionName = Collections["collection"];
|
|
37
|
+
export type Collection<C extends CollectionName> = Extract<Collections, {
|
|
36
38
|
collection: C;
|
|
37
|
-
}
|
|
39
|
+
}>;
|
|
40
|
+
export type CollectionConfigData<C extends CollectionName> = Collection<C>["configData"];
|
|
@@ -1,27 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
collection: "Lootboxes";
|
|
4
|
-
configData: LootboxConfigData;
|
|
5
|
-
configName: string;
|
|
6
|
-
dateCreated: any;
|
|
7
|
-
dateModified: any;
|
|
8
|
-
hash: any;
|
|
9
|
-
};
|
|
1
|
+
import { CollectionData } from "./collection-data";
|
|
2
|
+
export type LootboxData = CollectionData<"Lootboxes", LootboxConfigData>;
|
|
10
3
|
export type LootboxConfigData = {
|
|
11
|
-
|
|
4
|
+
Rarity: LootboxRarity;
|
|
12
5
|
DisplayName: string;
|
|
13
6
|
Icon: string;
|
|
14
|
-
|
|
7
|
+
Desc: string;
|
|
15
8
|
};
|
|
16
9
|
export type LootboxRarity = {
|
|
17
|
-
Announce: boolean;
|
|
18
|
-
Color: any;
|
|
19
|
-
DisplayName: string;
|
|
20
|
-
Gradient: any;
|
|
21
|
-
ItemSlot: any;
|
|
22
|
-
Lootbag: any;
|
|
23
|
-
Message: any;
|
|
24
10
|
RarityNumber: number;
|
|
11
|
+
Lootbag: unknown;
|
|
25
12
|
_id: string;
|
|
26
|
-
|
|
13
|
+
Color: unknown;
|
|
14
|
+
DisplayName: string;
|
|
15
|
+
Message: unknown;
|
|
16
|
+
ItemSlot: unknown;
|
|
17
|
+
Gradient: unknown;
|
|
18
|
+
Announce: boolean;
|
|
19
|
+
_script: unknown;
|
|
27
20
|
};
|
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
collection: "Mastery";
|
|
4
|
-
configData: MasteryConfigData;
|
|
5
|
-
configName: string;
|
|
6
|
-
dateCreated: any;
|
|
7
|
-
dateModified: any;
|
|
8
|
-
hash: any;
|
|
9
|
-
};
|
|
1
|
+
import { CollectionData } from "./collection-data";
|
|
2
|
+
export type MasteryData = CollectionData<"Mastery", MasteryConfigData>;
|
|
10
3
|
export type MasteryConfigData = {
|
|
11
|
-
|
|
4
|
+
Perks: MasteryPerks;
|
|
12
5
|
FFlag: string;
|
|
13
|
-
Icon: string;
|
|
14
6
|
Name: string;
|
|
15
|
-
|
|
7
|
+
Icon: string;
|
|
8
|
+
Desc: string;
|
|
16
9
|
ToggleablePerks?: MasteryToggleablePerks;
|
|
17
10
|
};
|
|
18
11
|
export type MasteryPerks = {
|
|
@@ -1,20 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
collection: "Merchants";
|
|
4
|
-
configData: MerchantConfigData;
|
|
5
|
-
configName: string;
|
|
6
|
-
dateCreated: any;
|
|
7
|
-
dateModified: any;
|
|
8
|
-
hash: any;
|
|
9
|
-
};
|
|
1
|
+
import { CollectionData } from "./collection-data";
|
|
2
|
+
export type MerchantData = CollectionData<"Merchants", MerchantConfigData>;
|
|
10
3
|
export type MerchantConfigData = {
|
|
4
|
+
PriceMult: number;
|
|
5
|
+
GetOffers: unknown;
|
|
11
6
|
DisplayName: string;
|
|
12
|
-
|
|
7
|
+
StockRangeByRespectLevel?: number[][];
|
|
13
8
|
MachineName: string;
|
|
14
|
-
PriceMult: number;
|
|
15
|
-
RefreshRate: number;
|
|
16
9
|
SlotRespectLevels?: number[];
|
|
17
|
-
|
|
10
|
+
RefreshRate: number;
|
|
18
11
|
HideNotification?: boolean;
|
|
19
12
|
HideRespect?: boolean;
|
|
20
13
|
IsStatic?: boolean;
|
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
collection: "MiscItems";
|
|
4
|
-
configData: MiscItemConfigData;
|
|
5
|
-
configName: string;
|
|
6
|
-
dateCreated: any;
|
|
7
|
-
dateModified: any;
|
|
8
|
-
hash: any;
|
|
9
|
-
};
|
|
1
|
+
import { CollectionData } from "./collection-data";
|
|
2
|
+
export type MiscItemData = CollectionData<"MiscItems", MiscItemConfigData>;
|
|
10
3
|
export interface MiscItemConfigData {
|
|
11
|
-
Rarity:
|
|
4
|
+
Rarity: MiscItemRarity;
|
|
12
5
|
DisplayName: string;
|
|
13
6
|
Category: string;
|
|
14
7
|
Icon: string;
|
|
@@ -16,15 +9,15 @@ export interface MiscItemConfigData {
|
|
|
16
9
|
Tradable?: boolean;
|
|
17
10
|
AltIcon?: string;
|
|
18
11
|
}
|
|
19
|
-
export interface
|
|
12
|
+
export interface MiscItemRarity {
|
|
20
13
|
RarityNumber: number;
|
|
21
|
-
Lootbag:
|
|
14
|
+
Lootbag: unknown;
|
|
22
15
|
_id: string;
|
|
23
|
-
Color:
|
|
16
|
+
Color: unknown;
|
|
24
17
|
DisplayName: string;
|
|
25
|
-
Message:
|
|
26
|
-
ItemSlot:
|
|
27
|
-
Gradient:
|
|
18
|
+
Message: unknown;
|
|
19
|
+
ItemSlot: unknown;
|
|
20
|
+
Gradient: unknown;
|
|
28
21
|
Announce: boolean;
|
|
29
|
-
_script:
|
|
22
|
+
_script: unknown;
|
|
30
23
|
}
|
|
@@ -1,33 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
collection: "Pets";
|
|
4
|
-
configData: PetConfigData;
|
|
5
|
-
configName: string;
|
|
6
|
-
dateCreated: any;
|
|
7
|
-
dateModified: any;
|
|
8
|
-
hash: any;
|
|
9
|
-
};
|
|
1
|
+
import { CollectionData } from "./collection-data";
|
|
2
|
+
export type PetData = CollectionData<"Pets", PetConfigData>;
|
|
10
3
|
export type PetConfigData = {
|
|
11
4
|
goldenThumbnail: string;
|
|
12
|
-
huge?: boolean;
|
|
13
|
-
indexDesc?: string;
|
|
14
5
|
indexObtainable?: boolean;
|
|
6
|
+
huge?: boolean;
|
|
15
7
|
name: string;
|
|
8
|
+
indexDesc?: string;
|
|
16
9
|
thumbnail: string;
|
|
17
10
|
fly?: boolean;
|
|
18
11
|
animations?: PetAnimations;
|
|
19
12
|
hideSerial?: boolean;
|
|
20
|
-
hideExists?: boolean;
|
|
21
13
|
tradable?: boolean;
|
|
14
|
+
hideExists?: boolean;
|
|
22
15
|
ugc?: boolean;
|
|
23
16
|
evolved?: boolean;
|
|
24
17
|
preventGolden?: boolean;
|
|
25
18
|
titanic?: boolean;
|
|
26
19
|
flyingTitanic?: boolean;
|
|
27
|
-
cachedPower?: number[];
|
|
28
|
-
fromEgg?: string;
|
|
29
20
|
fromWorldNumber?: number;
|
|
30
21
|
fromZoneNumber?: number;
|
|
22
|
+
cachedPower?: number[];
|
|
23
|
+
fromEgg?: string;
|
|
31
24
|
exclusiveLevel?: number;
|
|
32
25
|
power?: number;
|
|
33
26
|
overrideZoneNumber?: number;
|
|
@@ -38,16 +31,17 @@ export type PetConfigData = {
|
|
|
38
31
|
isFromLastZone?: boolean;
|
|
39
32
|
};
|
|
40
33
|
export type PetAnimations = {
|
|
34
|
+
angelusSpin?: boolean;
|
|
41
35
|
flyHeight?: number;
|
|
42
36
|
flyHeightChange?: number;
|
|
43
37
|
flySpeed?: number;
|
|
44
38
|
swerve?: boolean;
|
|
45
|
-
swerveAggression?: number;
|
|
46
39
|
swerveMaxAngle?: number;
|
|
40
|
+
swerveAggression?: number;
|
|
47
41
|
ballBounceHeight?: number;
|
|
48
42
|
spinZ?: boolean;
|
|
49
|
-
ridingCameraOffset: any;
|
|
50
43
|
ridingGravity?: number;
|
|
44
|
+
ridingCameraOffset: unknown;
|
|
51
45
|
balloon?: boolean;
|
|
52
46
|
particlesSketch?: PetParticlesSketch;
|
|
53
47
|
vertexColorAnim?: PetVertexColorAnim[];
|
|
@@ -56,18 +50,17 @@ export type PetAnimations = {
|
|
|
56
50
|
replacementPool?: number[][];
|
|
57
51
|
replacements?: PetReplacement[];
|
|
58
52
|
boneFlyingAnimation?: string;
|
|
59
|
-
customAnimations?: boolean;
|
|
60
53
|
fadeFrames?: PetFadeFrame[];
|
|
61
54
|
idleActionAnimations?: [string, number][];
|
|
62
|
-
|
|
55
|
+
customAnimations?: boolean;
|
|
63
56
|
christmasLights?: boolean;
|
|
64
57
|
hybridFly?: boolean;
|
|
65
|
-
flipbookAnimation?: string[];
|
|
66
58
|
flipbookAnimationGold?: string[];
|
|
67
59
|
flipbookAnimationSpeed?: number;
|
|
60
|
+
flipbookAnimation?: string[];
|
|
68
61
|
ridingJumpPower?: number;
|
|
69
|
-
balloonScale: any;
|
|
70
62
|
balloonSpeed?: number;
|
|
63
|
+
balloonScale: unknown;
|
|
71
64
|
ridingTransparency?: number;
|
|
72
65
|
spin?: boolean;
|
|
73
66
|
colorVariants?: PetColorVariant[];
|
|
@@ -77,20 +70,20 @@ export type PetParticlesSketch = {
|
|
|
77
70
|
Idle: PetIdle;
|
|
78
71
|
};
|
|
79
72
|
export type PetFarm = {
|
|
80
|
-
Left:
|
|
81
|
-
Right:
|
|
73
|
+
Left: unknown;
|
|
74
|
+
Right: unknown;
|
|
82
75
|
};
|
|
83
76
|
export type PetIdle = {
|
|
84
|
-
Left:
|
|
85
|
-
Right:
|
|
77
|
+
Left: unknown;
|
|
78
|
+
Right: unknown;
|
|
86
79
|
};
|
|
87
80
|
export type PetVertexColorAnim = {
|
|
88
81
|
Time: number;
|
|
89
|
-
Value:
|
|
82
|
+
Value: unknown;
|
|
90
83
|
};
|
|
91
84
|
export type PetReplacement = {
|
|
92
85
|
desc: string;
|
|
93
|
-
dst:
|
|
86
|
+
dst: unknown;
|
|
94
87
|
isUnique: boolean;
|
|
95
88
|
title: string;
|
|
96
89
|
};
|
|
@@ -102,7 +95,7 @@ export type PetFadeFrame = {
|
|
|
102
95
|
};
|
|
103
96
|
export type PetColorVariant = {
|
|
104
97
|
Chance: number;
|
|
105
|
-
Color:
|
|
98
|
+
Color: unknown;
|
|
106
99
|
Desc: string;
|
|
107
100
|
Id: number;
|
|
108
101
|
IsUnique: boolean;
|
|
@@ -1,36 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
collection: "Potions";
|
|
4
|
-
configData: PotionConfigData;
|
|
5
|
-
configName: string;
|
|
6
|
-
dateCreated: any;
|
|
7
|
-
dateModified: any;
|
|
8
|
-
hash: any;
|
|
9
|
-
};
|
|
1
|
+
import { CollectionData } from "./collection-data";
|
|
2
|
+
export type PotionData = CollectionData<"Potions", PotionConfigData>;
|
|
10
3
|
export type PotionConfigData = {
|
|
11
|
-
|
|
12
|
-
MaxTier: number;
|
|
4
|
+
Tiers: PotionTier[];
|
|
13
5
|
PrimaryColor: string;
|
|
6
|
+
MaxTier: number;
|
|
14
7
|
SecondaryColor: string;
|
|
15
|
-
|
|
8
|
+
BaseTier: number;
|
|
16
9
|
};
|
|
17
10
|
export type PotionTier = {
|
|
18
|
-
Desc: string;
|
|
19
|
-
DisplayName: string;
|
|
20
|
-
Icon: string;
|
|
21
|
-
Power: number;
|
|
22
11
|
Rarity: PotionRarity;
|
|
12
|
+
Power: number;
|
|
13
|
+
Desc: string;
|
|
23
14
|
Time: number;
|
|
15
|
+
Icon: string;
|
|
16
|
+
DisplayName: string;
|
|
24
17
|
};
|
|
25
18
|
export type PotionRarity = {
|
|
26
|
-
Announce: boolean;
|
|
27
|
-
Color: any;
|
|
28
|
-
DisplayName: string;
|
|
29
|
-
Gradient: any;
|
|
30
|
-
ItemSlot: any;
|
|
31
|
-
Lootbag: any;
|
|
32
|
-
Message: any;
|
|
33
19
|
RarityNumber: number;
|
|
20
|
+
Lootbag: unknown;
|
|
34
21
|
_id: string;
|
|
35
|
-
|
|
22
|
+
Color: unknown;
|
|
23
|
+
DisplayName: string;
|
|
24
|
+
Message: unknown;
|
|
25
|
+
ItemSlot: unknown;
|
|
26
|
+
Gradient: unknown;
|
|
27
|
+
Announce: boolean;
|
|
28
|
+
_script: unknown;
|
|
36
29
|
};
|
|
@@ -1,28 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
collection: "RandomEvents";
|
|
4
|
-
configData: RandomEventConfigData;
|
|
5
|
-
configName: string;
|
|
6
|
-
dateCreated: any;
|
|
7
|
-
dateModified: any;
|
|
8
|
-
hash: any;
|
|
9
|
-
};
|
|
1
|
+
import { CollectionData } from "./collection-data";
|
|
2
|
+
export type RandomEventData = CollectionData<"RandomEvents", RandomEventConfigData>;
|
|
10
3
|
export type RandomEventConfigData = {
|
|
11
|
-
AllowInInstances: boolean;
|
|
12
4
|
AllowInZones: boolean;
|
|
13
|
-
AllowMultiple: boolean;
|
|
14
|
-
AreaWhitelist: RandomEventAreaWhitelist;
|
|
15
|
-
BreakingRequirement: number;
|
|
16
|
-
Chance: number;
|
|
17
5
|
Color: string;
|
|
18
6
|
Duration: number;
|
|
19
7
|
Icon: string;
|
|
20
|
-
|
|
8
|
+
BreakingRequirement: number;
|
|
21
9
|
PlaytimeRequirement: number;
|
|
10
|
+
Name: string;
|
|
11
|
+
AllowInInstances: boolean;
|
|
12
|
+
Chance: number;
|
|
13
|
+
AreaWhitelist: RandomEventAreaWhitelist;
|
|
14
|
+
AllowMultiple: boolean;
|
|
22
15
|
MinimumZone?: number;
|
|
23
16
|
};
|
|
24
17
|
export type RandomEventAreaWhitelist = {
|
|
18
|
+
Main_Magma: boolean;
|
|
25
19
|
Main: boolean;
|
|
26
20
|
Main_Ice: boolean;
|
|
27
|
-
Main_Magma: boolean;
|
|
28
21
|
};
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
collection: "Ranks";
|
|
4
|
-
configData: RankConfigData;
|
|
5
|
-
configName: string;
|
|
6
|
-
dateCreated: any;
|
|
7
|
-
dateModified: any;
|
|
8
|
-
hash: any;
|
|
9
|
-
};
|
|
1
|
+
import { CollectionData } from "./collection-data";
|
|
2
|
+
export type RankData = CollectionData<"Ranks", RankConfigData>;
|
|
10
3
|
export type RankConfigData = {
|
|
11
4
|
Goals: RankGoal[][];
|
|
12
5
|
MaxEnchantsEquipped: number;
|
|
@@ -16,7 +9,7 @@ export type RankConfigData = {
|
|
|
16
9
|
Title: string;
|
|
17
10
|
UnlockableEggSlots: number;
|
|
18
11
|
UnlockablePetSlots: number;
|
|
19
|
-
RankUpRewards?:
|
|
12
|
+
RankUpRewards?: RankRewardItem[];
|
|
20
13
|
RequiredRebirth?: number;
|
|
21
14
|
RequiredZone?: string;
|
|
22
15
|
};
|
|
@@ -30,21 +23,13 @@ export type RankGoal = {
|
|
|
30
23
|
EnchantTier?: number;
|
|
31
24
|
};
|
|
32
25
|
export type RankReward = {
|
|
33
|
-
Item:
|
|
26
|
+
Item: RankRewardItem;
|
|
34
27
|
StarsRequired: number;
|
|
35
28
|
};
|
|
36
|
-
export type
|
|
37
|
-
_data:
|
|
38
|
-
};
|
|
39
|
-
export type RankItemData = {
|
|
40
|
-
_am?: number;
|
|
41
|
-
id: string;
|
|
42
|
-
tn?: number;
|
|
43
|
-
};
|
|
44
|
-
export type RankUpReward = {
|
|
45
|
-
_data: RankUpRewardData;
|
|
29
|
+
export type RankRewardItem = {
|
|
30
|
+
_data: RankRewardItemData;
|
|
46
31
|
};
|
|
47
|
-
export type
|
|
32
|
+
export type RankRewardItemData = {
|
|
48
33
|
_am?: number;
|
|
49
34
|
id: string;
|
|
50
35
|
tn?: number;
|
|
@@ -1,19 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
collection: "Rarity";
|
|
4
|
-
configData: RarityConfigData;
|
|
5
|
-
configName: string;
|
|
6
|
-
dateCreated: any;
|
|
7
|
-
dateModified: any;
|
|
8
|
-
hash: any;
|
|
9
|
-
};
|
|
1
|
+
import { CollectionData } from "./collection-data";
|
|
2
|
+
export type RarityData = CollectionData<"Rarity", RarityConfigData>;
|
|
10
3
|
export type RarityConfigData = {
|
|
11
4
|
Announce: boolean;
|
|
12
5
|
Color: string;
|
|
13
6
|
DisplayName: string;
|
|
14
|
-
Gradient:
|
|
15
|
-
ItemSlot:
|
|
16
|
-
Lootbag:
|
|
17
|
-
Message:
|
|
7
|
+
Gradient: unknown;
|
|
8
|
+
ItemSlot: unknown;
|
|
9
|
+
Lootbag: unknown;
|
|
10
|
+
Message: unknown;
|
|
18
11
|
RarityNumber: number;
|
|
19
12
|
};
|
|
@@ -1,21 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
collection: "Rebirths";
|
|
4
|
-
configData: RebirthConfigData;
|
|
5
|
-
configName: string;
|
|
6
|
-
dateCreated: any;
|
|
7
|
-
dateModified: any;
|
|
8
|
-
hash: any;
|
|
9
|
-
};
|
|
1
|
+
import { CollectionData } from "./collection-data";
|
|
2
|
+
export type RebirthData = CollectionData<"Rebirths", RebirthConfigData>;
|
|
10
3
|
export type RebirthConfigData = {
|
|
11
4
|
BoostDesc: string;
|
|
12
5
|
DisplayName: string;
|
|
13
|
-
ItemRewards:
|
|
6
|
+
ItemRewards: unknown;
|
|
14
7
|
RebirthNumber: number;
|
|
15
8
|
RebirthUnlocks: RebirthUnlock[];
|
|
16
9
|
StrengthPowerBoost: number;
|
|
17
10
|
ZoneNumberRequired: number;
|
|
18
|
-
RebirthCallback:
|
|
11
|
+
RebirthCallback: unknown;
|
|
19
12
|
ResetZone?: string;
|
|
20
13
|
};
|
|
21
14
|
export type RebirthUnlock = {
|
|
@@ -1,46 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
collection: "SecretRooms";
|
|
4
|
-
configData: SecretRoomConfigData;
|
|
5
|
-
configName: string;
|
|
6
|
-
dateCreated: any;
|
|
7
|
-
dateModified: any;
|
|
8
|
-
hash: any;
|
|
9
|
-
};
|
|
1
|
+
import { CollectionData } from "./collection-data";
|
|
2
|
+
export type SecretRoomData = CollectionData<"SecretRooms", SecretRoomConfigData>;
|
|
10
3
|
export type SecretRoomConfigData = {
|
|
11
|
-
|
|
12
|
-
DisplayName: string;
|
|
4
|
+
UnlockAnimation: unknown;
|
|
13
5
|
InstanceId: string;
|
|
6
|
+
CloseDoor: unknown;
|
|
14
7
|
RequiredZone: string;
|
|
15
|
-
UnlockAnimation: any;
|
|
16
|
-
};
|
|
17
|
-
export type SeedData = {
|
|
18
|
-
category: string;
|
|
19
|
-
collection: "Seeds";
|
|
20
|
-
configData: SeedConfigData;
|
|
21
|
-
configName: string;
|
|
22
|
-
dateCreated: any;
|
|
23
|
-
dateModified: any;
|
|
24
|
-
hash: any;
|
|
25
|
-
};
|
|
26
|
-
export type SeedConfigData = {
|
|
27
|
-
Desc: string;
|
|
28
|
-
DisplayName: string;
|
|
29
|
-
GrowTime: number;
|
|
30
|
-
Icon: string;
|
|
31
|
-
LootTable: any;
|
|
32
|
-
Rarity: SeedRarity;
|
|
33
|
-
Stages: any[];
|
|
34
|
-
};
|
|
35
|
-
export type SeedRarity = {
|
|
36
|
-
Announce: boolean;
|
|
37
|
-
Color: any;
|
|
38
8
|
DisplayName: string;
|
|
39
|
-
Gradient: any;
|
|
40
|
-
ItemSlot: any;
|
|
41
|
-
Lootbag: any;
|
|
42
|
-
Message: any;
|
|
43
|
-
RarityNumber: number;
|
|
44
|
-
_id: string;
|
|
45
|
-
_script: any;
|
|
46
9
|
};
|