ps99-api 2.3.2 → 2.4.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/node-ps99-api.iml +1 -0
- package/README.md +1 -1
- package/dist/responses/collection/achievement.d.ts +2 -0
- package/dist/responses/collection/guild-battle.d.ts +2 -4
- package/dist/responses/collection/rank.d.ts +1 -0
- package/dist/responses/collection/seed.d.ts +1 -0
- package/dist/responses/exists.d.ts +2 -0
- package/example-web/react2/public/service-worker.js +6 -6
- package/example-web/react2/src/App.tsx +8 -2
- package/example-web/react2/src/components/AchievementsComponent.tsx +23 -30
- package/example-web/react2/src/components/BoostsComponent.tsx +6 -13
- package/example-web/react2/src/components/BoothsComponent.tsx +52 -20
- package/example-web/react2/src/components/BoxesComponent.tsx +17 -24
- package/example-web/react2/src/components/BuffsComponent.tsx +35 -13
- package/example-web/react2/src/components/CharmsComponent.tsx +25 -30
- package/example-web/react2/src/components/CurrencyComponent.tsx +37 -44
- package/example-web/react2/src/components/DynamicCollectionConfigData.tsx +23 -4
- package/example-web/react2/src/components/EggsComponent.tsx +39 -44
- package/example-web/react2/src/components/EnchantsComponent.tsx +43 -34
- package/example-web/react2/src/components/FishingRodsComponent.tsx +23 -30
- package/example-web/react2/src/components/Footer.tsx +80 -16
- package/example-web/react2/src/components/FruitsComponent.tsx +18 -25
- package/example-web/react2/src/components/GenericFetchComponent.tsx +31 -21
- package/example-web/react2/src/components/GuildBattlesComponent.tsx +86 -65
- package/example-web/react2/src/components/HomePage.tsx +3 -1
- package/example-web/react2/src/components/HoverboardsComponent.tsx +100 -36
- package/example-web/react2/src/components/LootboxesComponent.tsx +8 -15
- package/example-web/react2/src/components/MasteryComponent.tsx +17 -24
- package/example-web/react2/src/components/MerchantsComponent.tsx +16 -23
- package/example-web/react2/src/components/MiscItemsComponent.tsx +32 -25
- package/example-web/react2/src/components/PetsComponent.tsx +74 -44
- package/example-web/react2/src/components/PotionsComponent.tsx +37 -36
- package/example-web/react2/src/components/RandomEventsComponent.tsx +30 -35
- package/example-web/react2/src/components/RanksComponent.tsx +58 -67
- package/example-web/react2/src/components/RarityComponent.tsx +7 -14
- package/example-web/react2/src/components/RebirthsComponent.tsx +20 -26
- package/example-web/react2/src/components/SecretRoomsComponent.tsx +6 -13
- package/example-web/react2/src/components/SeedsComponent.tsx +15 -22
- package/example-web/react2/src/components/ShovelsComponent.tsx +9 -16
- package/example-web/react2/src/components/SprinklersComponent.tsx +11 -18
- package/example-web/react2/src/components/UltimatesComponent.tsx +17 -24
- package/example-web/react2/src/components/UpgradesComponent.tsx +49 -54
- package/example-web/react2/src/components/WateringCansComponent.tsx +15 -19
- package/example-web/react2/src/components/WorldsComponent.tsx +16 -23
- package/example-web/react2/src/components/XPPotionsComponent.tsx +12 -19
- package/example-web/react2/src/components/ZoneFlagsComponent.tsx +15 -22
- package/example-web/react2/src/components/ZonesComponent.tsx +69 -69
- package/package.json +1 -1
- package/src/responses/collection/achievement.ts +2 -0
- package/src/responses/collection/guild-battle.ts +2 -4
- package/src/responses/collection/rank.ts +1 -0
- package/src/responses/collection/seed.ts +1 -0
- package/src/responses/exists.ts +2 -0
|
@@ -1,27 +1,20 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { CollectionConfigData } from "ps99-api";
|
|
3
|
-
import { GenericFetchComponent } from "./GenericFetchComponent";
|
|
4
3
|
import ImageComponent from "./ImageComponent";
|
|
5
4
|
|
|
6
5
|
const ShovelComponent: React.FC<{
|
|
7
|
-
configData
|
|
6
|
+
configData: CollectionConfigData<"Shovels">;
|
|
8
7
|
}> = ({ configData }) => {
|
|
9
8
|
return (
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<p>Description: {data.Desc}</p>
|
|
17
|
-
<p>Associated Item ID: {data.AssociatedItemID}</p>
|
|
18
|
-
{data.MerchantSalePrice && (
|
|
19
|
-
<p>Merchant Sale Price: {data.MerchantSalePrice}</p>
|
|
20
|
-
)}
|
|
21
|
-
<ImageComponent src={data.Icon} alt={data.DisplayName} />
|
|
22
|
-
</div>
|
|
9
|
+
<div>
|
|
10
|
+
<h2>Shovel: {configData.DisplayName}</h2>
|
|
11
|
+
<p>Description: {configData.Desc}</p>
|
|
12
|
+
<p>Associated Item ID: {configData.AssociatedItemID}</p>
|
|
13
|
+
{configData.MerchantSalePrice && (
|
|
14
|
+
<p>Merchant Sale Price: {configData.MerchantSalePrice}</p>
|
|
23
15
|
)}
|
|
24
|
-
|
|
16
|
+
<ImageComponent src={configData.Icon} alt={configData.DisplayName} />
|
|
17
|
+
</div>
|
|
25
18
|
);
|
|
26
19
|
};
|
|
27
20
|
|
|
@@ -1,28 +1,21 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { CollectionConfigData } from "ps99-api";
|
|
3
|
-
import { GenericFetchComponent } from "./GenericFetchComponent";
|
|
4
3
|
import ImageComponent from "./ImageComponent";
|
|
5
4
|
|
|
6
5
|
const SprinklerComponent: React.FC<{
|
|
7
|
-
configData
|
|
6
|
+
configData: CollectionConfigData<"Sprinklers">;
|
|
8
7
|
}> = ({ configData }) => {
|
|
9
8
|
return (
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
<p>Rarity Number: {data.Rarity.RarityNumber}</p>
|
|
21
|
-
<p>Display Name: {data.Rarity.DisplayName}</p>
|
|
22
|
-
<ImageComponent src={data.Icon} alt={data.Name} />
|
|
23
|
-
</div>
|
|
24
|
-
)}
|
|
25
|
-
/>
|
|
9
|
+
<div>
|
|
10
|
+
<h2>Sprinkler: {configData.Name}</h2>
|
|
11
|
+
<p>Description: {configData.Desc}</p>
|
|
12
|
+
<p>Color: {configData.Color}</p>
|
|
13
|
+
<p>Duration: {configData.Duration} seconds</p>
|
|
14
|
+
<h3>Rarity</h3>
|
|
15
|
+
<p>Rarity Number: {configData.Rarity.RarityNumber}</p>
|
|
16
|
+
<p>Display Name: {configData.Rarity.DisplayName}</p>
|
|
17
|
+
<ImageComponent src={configData.Icon} alt={configData.Name} />
|
|
18
|
+
</div>
|
|
26
19
|
);
|
|
27
20
|
};
|
|
28
21
|
|
|
@@ -1,34 +1,27 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { CollectionConfigData } from "ps99-api";
|
|
3
|
-
import { GenericFetchComponent } from "./GenericFetchComponent";
|
|
4
3
|
import ImageComponent from "./ImageComponent";
|
|
5
4
|
|
|
6
5
|
const UltimateComponent: React.FC<{
|
|
7
|
-
configData
|
|
6
|
+
configData: CollectionConfigData<"Ultimates">;
|
|
8
7
|
}> = ({ configData }) => {
|
|
9
8
|
return (
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
<h3>Tiers</h3>
|
|
27
|
-
<p>Tier to Level Mapping: {data.TierToLevel.join(", ")}</p>
|
|
28
|
-
<p>Level to Tier Mapping: {data.LevelToTier.join(", ")}</p>
|
|
29
|
-
</div>
|
|
30
|
-
)}
|
|
31
|
-
/>
|
|
9
|
+
<div>
|
|
10
|
+
<h2>Ultimate: {configData.DisplayName}</h2>
|
|
11
|
+
<p>Description: {configData.Desc}</p>
|
|
12
|
+
<p>Max Tier: {configData.MaxTier}</p>
|
|
13
|
+
<p>FFlag Name: {configData.FFlagName}</p>
|
|
14
|
+
{configData.Tradable && <p>Tradable</p>}
|
|
15
|
+
{configData.ProductId && <p>Product ID: {configData.ProductId}</p>}
|
|
16
|
+
{configData.NotAllowedInInstances && <p>Not Allowed in Instances</p>}
|
|
17
|
+
<h3>Rarity</h3>
|
|
18
|
+
<p>Rarity Number: {configData.Rarity.RarityNumber}</p>
|
|
19
|
+
<p>Display Name: {configData.Rarity.DisplayName}</p>
|
|
20
|
+
<ImageComponent src={configData.Icon} alt={configData.DisplayName} />
|
|
21
|
+
<h3>Tiers</h3>
|
|
22
|
+
<p>Tier to Level Mapping: {configData.TierToLevel.join(", ")}</p>
|
|
23
|
+
<p>Level to Tier Mapping: {configData.LevelToTier.join(", ")}</p>
|
|
24
|
+
</div>
|
|
32
25
|
);
|
|
33
26
|
};
|
|
34
27
|
|
|
@@ -1,73 +1,68 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { CollectionConfigData } from "ps99-api";
|
|
3
|
-
import { GenericFetchComponent } from "./GenericFetchComponent";
|
|
4
3
|
import ImageComponent from "./ImageComponent";
|
|
5
4
|
|
|
6
5
|
const UpgradeComponent: React.FC<{
|
|
7
|
-
configData
|
|
6
|
+
configData: CollectionConfigData<"Upgrades">;
|
|
8
7
|
}> = ({ configData }) => {
|
|
9
8
|
return (
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
<div>
|
|
10
|
+
<h2>Upgrade</h2>
|
|
11
|
+
{configData.Icon && (
|
|
12
|
+
<ImageComponent src={configData.Icon} alt="Upgrade Icon" />
|
|
13
|
+
)}
|
|
14
|
+
<h3>Tier Powers</h3>
|
|
15
|
+
<ul>
|
|
16
|
+
{configData.TierPowers.map((power, index) => (
|
|
17
|
+
<li key={index}>
|
|
18
|
+
Tier {index + 1}: {power}
|
|
19
|
+
</li>
|
|
20
|
+
))}
|
|
21
|
+
</ul>
|
|
22
|
+
<h3>Tier Costs</h3>
|
|
23
|
+
<ul>
|
|
24
|
+
{configData.TierCosts.map((cost, index) => (
|
|
25
|
+
<li key={index}>
|
|
26
|
+
Tier {index + 1}: {cost}
|
|
27
|
+
</li>
|
|
28
|
+
))}
|
|
29
|
+
</ul>
|
|
30
|
+
<h3>Tier Currencies</h3>
|
|
31
|
+
{configData.TierCurrencies.map((currency, index) => (
|
|
32
|
+
<div key={index}>
|
|
33
|
+
<h4>{currency.DisplayName}</h4>
|
|
34
|
+
<p>Rarity Number: {currency.Rarity.RarityNumber}</p>
|
|
35
|
+
<p>Description: {currency.Desc}</p>
|
|
36
|
+
{currency.Tradable && <p>Tradable</p>}
|
|
37
|
+
<p>Max Amount: {currency.MaxAmount}</p>
|
|
38
|
+
<h5>Bag Tiers</h5>
|
|
18
39
|
<ul>
|
|
19
|
-
{
|
|
20
|
-
<li key={
|
|
21
|
-
|
|
40
|
+
{currency.BagTiers.map((bagTier, bagIndex) => (
|
|
41
|
+
<li key={bagIndex}>
|
|
42
|
+
<p>Value: {bagTier.value}</p>
|
|
43
|
+
<ImageComponent
|
|
44
|
+
src={bagTier.image}
|
|
45
|
+
alt={`Bag Tier ${bagTier.value}`}
|
|
46
|
+
/>
|
|
22
47
|
</li>
|
|
23
48
|
))}
|
|
24
49
|
</ul>
|
|
25
|
-
<
|
|
50
|
+
<h5>Tiers</h5>
|
|
26
51
|
<ul>
|
|
27
|
-
{
|
|
28
|
-
<li key={
|
|
29
|
-
Tier
|
|
52
|
+
{currency.Tiers.map((tier, tierIndex) => (
|
|
53
|
+
<li key={tierIndex}>
|
|
54
|
+
<p>Tier Name: {tier.tierName}</p>
|
|
55
|
+
<p>Order: {tier.Order}</p>
|
|
56
|
+
<p>Value: {tier.value}</p>
|
|
57
|
+
{tier.isBottom && <p>Is Bottom</p>}
|
|
58
|
+
<ImageComponent src={tier.orbImage} alt="Orb" />
|
|
59
|
+
<ImageComponent src={tier.imageOutline} alt="Outline" />
|
|
30
60
|
</li>
|
|
31
61
|
))}
|
|
32
62
|
</ul>
|
|
33
|
-
<h3>Tier Currencies</h3>
|
|
34
|
-
{data.TierCurrencies.map((currency, index) => (
|
|
35
|
-
<div key={index}>
|
|
36
|
-
<h4>{currency.DisplayName}</h4>
|
|
37
|
-
<p>Rarity Number: {currency.Rarity.RarityNumber}</p>
|
|
38
|
-
<p>Description: {currency.Desc}</p>
|
|
39
|
-
{currency.Tradable && <p>Tradable</p>}
|
|
40
|
-
<p>Max Amount: {currency.MaxAmount}</p>
|
|
41
|
-
<h5>Bag Tiers</h5>
|
|
42
|
-
<ul>
|
|
43
|
-
{currency.BagTiers.map((bagTier, bagIndex) => (
|
|
44
|
-
<li key={bagIndex}>
|
|
45
|
-
<p>Value: {bagTier.value}</p>
|
|
46
|
-
<ImageComponent
|
|
47
|
-
src={bagTier.image}
|
|
48
|
-
alt={`Bag Tier ${bagTier.value}`}
|
|
49
|
-
/>
|
|
50
|
-
</li>
|
|
51
|
-
))}
|
|
52
|
-
</ul>
|
|
53
|
-
<h5>Tiers</h5>
|
|
54
|
-
<ul>
|
|
55
|
-
{currency.Tiers.map((tier, tierIndex) => (
|
|
56
|
-
<li key={tierIndex}>
|
|
57
|
-
<p>Tier Name: {tier.tierName}</p>
|
|
58
|
-
<p>Order: {tier.Order}</p>
|
|
59
|
-
<p>Value: {tier.value}</p>
|
|
60
|
-
{tier.isBottom && <p>Is Bottom</p>}
|
|
61
|
-
<ImageComponent src={tier.orbImage} alt="Orb" />
|
|
62
|
-
<ImageComponent src={tier.imageOutline} alt="Outline" />
|
|
63
|
-
</li>
|
|
64
|
-
))}
|
|
65
|
-
</ul>
|
|
66
|
-
</div>
|
|
67
|
-
))}
|
|
68
63
|
</div>
|
|
69
|
-
)}
|
|
70
|
-
|
|
64
|
+
))}
|
|
65
|
+
</div>
|
|
71
66
|
);
|
|
72
67
|
};
|
|
73
68
|
|
|
@@ -1,30 +1,26 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { CollectionConfigData } from "ps99-api";
|
|
3
|
-
import { GenericFetchComponent } from "./GenericFetchComponent";
|
|
4
3
|
import ImageComponent from "./ImageComponent";
|
|
5
4
|
|
|
6
5
|
const WateringCanComponent: React.FC<{
|
|
7
|
-
configData
|
|
6
|
+
configData: CollectionConfigData<"WateringCans">;
|
|
8
7
|
}> = ({ configData }) => {
|
|
9
8
|
return (
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
<ImageComponent src={data.Icon} alt={`${data.DisplayName} Icon`} />
|
|
19
|
-
)}
|
|
20
|
-
<p>Associated Item ID: {data.AssociatedItemID}</p>
|
|
21
|
-
<p>Plant Time Multiplier: {data.PlantTimeMultiplier}</p>
|
|
22
|
-
<p>
|
|
23
|
-
Plant Time Multiplier Duration: {data.PlantTimeMultiplierDuration}
|
|
24
|
-
</p>
|
|
25
|
-
</div>
|
|
9
|
+
<div>
|
|
10
|
+
<h2>Watering Can</h2>
|
|
11
|
+
<h3>{configData.DisplayName}</h3>
|
|
12
|
+
{configData.Icon && (
|
|
13
|
+
<ImageComponent
|
|
14
|
+
src={configData.Icon}
|
|
15
|
+
alt={`${configData.DisplayName} Icon`}
|
|
16
|
+
/>
|
|
26
17
|
)}
|
|
27
|
-
|
|
18
|
+
<p>Associated Item ID: {configData.AssociatedItemID}</p>
|
|
19
|
+
<p>Plant Time Multiplier: {configData.PlantTimeMultiplier}</p>
|
|
20
|
+
<p>
|
|
21
|
+
Plant Time Multiplier Duration: {configData.PlantTimeMultiplierDuration}
|
|
22
|
+
</p>
|
|
23
|
+
</div>
|
|
28
24
|
);
|
|
29
25
|
};
|
|
30
26
|
|
|
@@ -1,35 +1,28 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { CollectionConfigData } from "ps99-api";
|
|
3
|
-
import { GenericFetchComponent } from "./GenericFetchComponent";
|
|
4
3
|
|
|
5
4
|
const WorldComponent: React.FC<{
|
|
6
|
-
configData
|
|
5
|
+
configData: CollectionConfigData<"Worlds">;
|
|
7
6
|
}> = ({ configData }) => {
|
|
8
7
|
return (
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
<div>
|
|
9
|
+
<h2>World</h2>
|
|
10
|
+
<h3>{configData.MapName}</h3>
|
|
11
|
+
<p>Spawn ID: {configData.SpawnId}</p>
|
|
12
|
+
<p>World Currency: {configData.WorldCurrency}</p>
|
|
13
|
+
<p>Place ID: {configData.PlaceId}</p>
|
|
14
|
+
<p>World Number: {configData.WorldNumber}</p>
|
|
15
|
+
{configData.AdditionalMusic && configData.AdditionalMusic.length > 0 && (
|
|
13
16
|
<div>
|
|
14
|
-
<
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
{data.AdditionalMusic && data.AdditionalMusic.length > 0 && (
|
|
21
|
-
<div>
|
|
22
|
-
<h4>Additional Music</h4>
|
|
23
|
-
<ul>
|
|
24
|
-
{data.AdditionalMusic.map((music, index) => (
|
|
25
|
-
<li key={index}>{music}</li>
|
|
26
|
-
))}
|
|
27
|
-
</ul>
|
|
28
|
-
</div>
|
|
29
|
-
)}
|
|
17
|
+
<h4>Additional Music</h4>
|
|
18
|
+
<ul>
|
|
19
|
+
{configData.AdditionalMusic.map((music, index) => (
|
|
20
|
+
<li key={index}>{music}</li>
|
|
21
|
+
))}
|
|
22
|
+
</ul>
|
|
30
23
|
</div>
|
|
31
24
|
)}
|
|
32
|
-
|
|
25
|
+
</div>
|
|
33
26
|
);
|
|
34
27
|
};
|
|
35
28
|
|
|
@@ -1,29 +1,22 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { CollectionConfigData } from "ps99-api";
|
|
3
|
-
import { GenericFetchComponent } from "./GenericFetchComponent";
|
|
4
3
|
import ImageComponent from "./ImageComponent";
|
|
5
4
|
|
|
6
5
|
const XPPotionsComponent: React.FC<{
|
|
7
|
-
configData
|
|
6
|
+
configData: CollectionConfigData<"XPPotions">;
|
|
8
7
|
}> = ({ configData }) => {
|
|
9
8
|
return (
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
configData={configData}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
<p>Display Name: {data.Rarity.DisplayName}</p>
|
|
22
|
-
<p>Rarity Number: {data.Rarity.RarityNumber}</p>
|
|
23
|
-
<p>Announce: {data.Rarity.Announce ? "Yes" : "No"}</p>
|
|
24
|
-
</div>
|
|
25
|
-
)}
|
|
26
|
-
/>
|
|
9
|
+
<div>
|
|
10
|
+
<h2>{configData.DisplayName}</h2>
|
|
11
|
+
<ImageComponent src={configData.Icon} alt={configData.DisplayName} />
|
|
12
|
+
<p>Amount: {configData.Amount}</p>
|
|
13
|
+
<p>Description: {configData.Desc}</p>
|
|
14
|
+
<p>Item ID: {configData.ItemId}</p>
|
|
15
|
+
<h3>Rarity</h3>
|
|
16
|
+
<p>Display Name: {configData.Rarity.DisplayName}</p>
|
|
17
|
+
<p>Rarity Number: {configData.Rarity.RarityNumber}</p>
|
|
18
|
+
<p>Announce: {configData.Rarity.Announce ? "Yes" : "No"}</p>
|
|
19
|
+
</div>
|
|
27
20
|
);
|
|
28
21
|
};
|
|
29
22
|
|
|
@@ -1,32 +1,25 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { CollectionConfigData } from "ps99-api";
|
|
3
|
-
import { GenericFetchComponent } from "./GenericFetchComponent";
|
|
4
3
|
import ImageComponent from "./ImageComponent";
|
|
5
4
|
|
|
6
5
|
const ZoneFlagComponent: React.FC<{
|
|
7
|
-
configData
|
|
6
|
+
configData: CollectionConfigData<"ZoneFlags">;
|
|
8
7
|
}> = ({ configData }) => {
|
|
9
8
|
return (
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
<p>Rarity: {data.Rarity.DisplayName}</p>
|
|
25
|
-
<p>Rarity Number: {data.Rarity.RarityNumber}</p>
|
|
26
|
-
<p>Announce: {data.Rarity.Announce.toString()}</p>
|
|
27
|
-
</div>
|
|
28
|
-
)}
|
|
29
|
-
/>
|
|
9
|
+
<div>
|
|
10
|
+
<h2>Zone Flag</h2>
|
|
11
|
+
<h3>{configData.Name}</h3>
|
|
12
|
+
<p>Description: {configData.Desc}</p>
|
|
13
|
+
<p>Duration: {configData.Duration} seconds</p>
|
|
14
|
+
<p>Color: {configData.Color}</p>
|
|
15
|
+
<p>
|
|
16
|
+
Icon: <ImageComponent src={configData.Icon} alt={configData.Name} />
|
|
17
|
+
</p>
|
|
18
|
+
<h4>Rarity</h4>
|
|
19
|
+
<p>Rarity: {configData.Rarity.DisplayName}</p>
|
|
20
|
+
<p>Rarity Number: {configData.Rarity.RarityNumber}</p>
|
|
21
|
+
<p>Announce: {configData.Rarity.Announce.toString()}</p>
|
|
22
|
+
</div>
|
|
30
23
|
);
|
|
31
24
|
};
|
|
32
25
|
|
|
@@ -1,88 +1,88 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { CollectionConfigData } from "ps99-api";
|
|
3
|
-
import { GenericFetchComponent } from "./GenericFetchComponent";
|
|
4
3
|
|
|
5
4
|
const ZoneComponent: React.FC<{
|
|
6
|
-
configData
|
|
5
|
+
configData: CollectionConfigData<"Zones">;
|
|
7
6
|
}> = ({ configData }) => {
|
|
8
7
|
return (
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
<div>
|
|
9
|
+
<h2>Zone</h2>
|
|
10
|
+
<h3>{configData.ZoneName}</h3>
|
|
11
|
+
<p>Zone Number: {configData.ZoneNumber}</p>
|
|
12
|
+
<p>World Number: {configData.WorldNumber}</p>
|
|
13
|
+
<p>Currency: {configData.Currency}</p>
|
|
14
|
+
<p>Maximum Available Egg: {configData.MaximumAvailableEgg}</p>
|
|
15
|
+
{configData.Price && <p>Price: {configData.Price}</p>}
|
|
16
|
+
{configData.GateHealth && <p>Gate Health: {configData.GateHealth}</p>}
|
|
17
|
+
{configData.TeleportToZoneOnFall && (
|
|
18
|
+
<p>
|
|
19
|
+
Teleport to Zone on Fall: {configData.TeleportToZoneOnFall.toString()}
|
|
20
|
+
</p>
|
|
21
|
+
)}
|
|
22
|
+
{configData.Ambience && (
|
|
23
|
+
<p>Ambience Sound ID: {configData.Ambience.SoundId}</p>
|
|
24
|
+
)}
|
|
25
|
+
{configData.QuestsRequired && configData.QuestsRequired.length > 0 && (
|
|
13
26
|
<div>
|
|
14
|
-
<
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
27
|
+
<h4>Quests Required</h4>
|
|
28
|
+
<ul>
|
|
29
|
+
{configData.QuestsRequired.map((quest, index) => (
|
|
30
|
+
<li key={index}>
|
|
31
|
+
Type: {quest.Type}, Amount: {quest.Amount}
|
|
32
|
+
</li>
|
|
33
|
+
))}
|
|
34
|
+
</ul>
|
|
35
|
+
</div>
|
|
36
|
+
)}
|
|
37
|
+
{configData.Lighting && (
|
|
38
|
+
<div>
|
|
39
|
+
<h4>Lighting</h4>
|
|
40
|
+
<p>Brightness: {configData.Lighting.Brightness}</p>
|
|
41
|
+
<p>Clock Time: {configData.Lighting.ClockTime}</p>
|
|
42
|
+
{configData.Lighting.Bloom && (
|
|
43
|
+
<div>
|
|
44
|
+
<h5>Bloom</h5>
|
|
45
|
+
<p>Enabled: {configData.Lighting.Bloom.Enabled.toString()}</p>
|
|
46
|
+
<p>Intensity: {configData.Lighting.Bloom.Intensity}</p>
|
|
47
|
+
<p>Size: {configData.Lighting.Bloom.Size}</p>
|
|
48
|
+
<p>Threshold: {configData.Lighting.Bloom.Threshold}</p>
|
|
49
|
+
</div>
|
|
26
50
|
)}
|
|
27
|
-
{
|
|
28
|
-
{data.QuestsRequired && data.QuestsRequired.length > 0 && (
|
|
51
|
+
{configData.Lighting.ColorCorrection && (
|
|
29
52
|
<div>
|
|
30
|
-
<
|
|
31
|
-
<
|
|
32
|
-
{
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
</
|
|
53
|
+
<h5>Color Correction</h5>
|
|
54
|
+
<p>
|
|
55
|
+
Enabled:{" "}
|
|
56
|
+
{configData.Lighting.ColorCorrection.Enabled.toString()}
|
|
57
|
+
</p>
|
|
58
|
+
<p>
|
|
59
|
+
Saturation: {configData.Lighting.ColorCorrection.Saturation}
|
|
60
|
+
</p>
|
|
61
|
+
<p>Contrast: {configData.Lighting.ColorCorrection.Contrast}</p>
|
|
62
|
+
<p>
|
|
63
|
+
Brightness: {configData.Lighting.ColorCorrection.Brightness}
|
|
64
|
+
</p>
|
|
38
65
|
</div>
|
|
39
66
|
)}
|
|
40
|
-
{
|
|
67
|
+
{configData.Lighting.Sky && (
|
|
41
68
|
<div>
|
|
42
|
-
<
|
|
43
|
-
<p>
|
|
44
|
-
<p>
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
{data.Lighting.ColorCorrection && (
|
|
55
|
-
<div>
|
|
56
|
-
<h5>Color Correction</h5>
|
|
57
|
-
<p>
|
|
58
|
-
Enabled: {data.Lighting.ColorCorrection.Enabled.toString()}
|
|
59
|
-
</p>
|
|
60
|
-
<p>Saturation: {data.Lighting.ColorCorrection.Saturation}</p>
|
|
61
|
-
<p>Contrast: {data.Lighting.ColorCorrection.Contrast}</p>
|
|
62
|
-
<p>Brightness: {data.Lighting.ColorCorrection.Brightness}</p>
|
|
63
|
-
</div>
|
|
64
|
-
)}
|
|
65
|
-
{data.Lighting.Sky && (
|
|
66
|
-
<div>
|
|
67
|
-
<h5>Sky</h5>
|
|
68
|
-
<p>Star Count: {data.Lighting.Sky.StarCount}</p>
|
|
69
|
-
<p>
|
|
70
|
-
Celestial Bodies Shown:{" "}
|
|
71
|
-
{data.Lighting.Sky.CelestialBodiesShown.toString()}
|
|
72
|
-
</p>
|
|
73
|
-
<p>Skybox Up: {data.Lighting.Sky.SkyboxUp}</p>
|
|
74
|
-
<p>Skybox Bk: {data.Lighting.Sky.SkyboxBk}</p>
|
|
75
|
-
<p>Skybox Dn: {data.Lighting.Sky.SkyboxDn}</p>
|
|
76
|
-
<p>Skybox Lf: {data.Lighting.Sky.SkyboxLf}</p>
|
|
77
|
-
<p>Skybox Rt: {data.Lighting.Sky.SkyboxRt}</p>
|
|
78
|
-
<p>Skybox Ft: {data.Lighting.Sky.SkyboxFt}</p>
|
|
79
|
-
</div>
|
|
80
|
-
)}
|
|
69
|
+
<h5>Sky</h5>
|
|
70
|
+
<p>Star Count: {configData.Lighting.Sky.StarCount}</p>
|
|
71
|
+
<p>
|
|
72
|
+
Celestial Bodies Shown:{" "}
|
|
73
|
+
{configData.Lighting.Sky.CelestialBodiesShown.toString()}
|
|
74
|
+
</p>
|
|
75
|
+
<p>Skybox Up: {configData.Lighting.Sky.SkyboxUp}</p>
|
|
76
|
+
<p>Skybox Bk: {configData.Lighting.Sky.SkyboxBk}</p>
|
|
77
|
+
<p>Skybox Dn: {configData.Lighting.Sky.SkyboxDn}</p>
|
|
78
|
+
<p>Skybox Lf: {configData.Lighting.Sky.SkyboxLf}</p>
|
|
79
|
+
<p>Skybox Rt: {configData.Lighting.Sky.SkyboxRt}</p>
|
|
80
|
+
<p>Skybox Ft: {configData.Lighting.Sky.SkyboxFt}</p>
|
|
81
81
|
</div>
|
|
82
82
|
)}
|
|
83
83
|
</div>
|
|
84
84
|
)}
|
|
85
|
-
|
|
85
|
+
</div>
|
|
86
86
|
);
|
|
87
87
|
};
|
|
88
88
|
|
package/package.json
CHANGED
|
@@ -26,14 +26,12 @@ export type GuildBattleItem = {
|
|
|
26
26
|
|
|
27
27
|
export type GuildBattleItemData = {
|
|
28
28
|
id: string;
|
|
29
|
+
/** For pets: pt=1 is golden, p2=2 is rainbow */
|
|
29
30
|
pt?: number;
|
|
30
31
|
};
|
|
31
32
|
|
|
32
33
|
export type GuildBattleRewards = {
|
|
33
|
-
|
|
34
|
-
Gold: GuildBattleRewardItem[];
|
|
35
|
-
Good?: GuildBattleRewardItem[];
|
|
36
|
-
Silver: GuildBattleRewardItem[];
|
|
34
|
+
[key: string]: GuildBattleRewardItem[];
|
|
37
35
|
};
|
|
38
36
|
|
|
39
37
|
export type GuildBattleRewardItem = {
|