Skip to content

Commit

Permalink
update objdata in almanac
Browse files Browse the repository at this point in the history
  • Loading branch information
Gzh0821 committed Jan 21, 2025
1 parent 219c5f2 commit fbdae4d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/plantsAlmanac/formatPlants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ export function formatOriginPlant(originPlant: any, i18nLanguage: string): Plant
frameWorld: frameMap[originPlant["OBTAINWORLD"]] || originPlant["OBTAINWORLD"],
description: originPlant["ALMANAC"]?.["Introduction"]?.[i18nLanguage],
chat: originPlant["ALMANAC"]?.["Chat"]?.[i18nLanguage],
subPlants: originPlant["SubPlantList"]
subPlants: originPlant["SubPlantList"],
objdata: originPlant["objdata"],
};
if (originPlant?.["ALMANAC"]?.["Elements"]) {
originPlant["ALMANAC"]["Elements"].forEach((element) => {
Expand Down
1 change: 1 addition & 0 deletions src/components/plantsAlmanac/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ export interface Plant {
frameWorld: string;
special: [Element] | [];
subPlants: [string];
objdata: { [key: string]: number | string };
}
1 change: 1 addition & 0 deletions src/components/plantsAlmanac/views/PlantDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
<div class="details-container">
<div class="plant-introduction">
<p class="description">Codename: <span class="descriptionKey">{{ plant.codename }}</span></p>
<!-- <br><p class="description">Objdata:{{ plant.objdata }}</p> -->
</div>
</div>
</div>
Expand Down

0 comments on commit fbdae4d

Please sign in to comment.