Skip to content

Commit 9f2621f

Browse files
committed
Refactor cookedItems to cookingData in player type
Replaces the cookedItems array in fullPlayerDataType with a new cookingData object, which includes knownRecipes, alreadyCookedRecipes, and cookedItems. Adds the cookingDataType definition for improved structure and clarity.
1 parent 38c0187 commit 9f2621f

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/types/displayDataTypes.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export type fullPlayerDataType = {
1313
shippedItems: generalFormatedItemType[];
1414
cropsShipped: cropsShippedType;
1515
mineralsFound?: itemFoundType[];
16-
cookedItems: generalFormatedItemType[];
16+
cookingData: cookingDataType;
1717
museumCollection: museumCollectionType;
1818
availableSpecialRequests: string[];
1919
fishCaught: generalFormatedItemType[];
@@ -25,6 +25,12 @@ export type fullPlayerDataType = {
2525
tailoredItems: string[];
2626
};
2727

28+
export type cookingDataType = {
29+
knownRecipes: number;
30+
alreadyCookedRecipes: number;
31+
cookedItems: generalFormatedItemType[];
32+
}
33+
2834
export type generalFormatedItemType = {
2935
id?: number;
3036
image: string;

0 commit comments

Comments
 (0)