This commit is contained in:
sarah committed 2026-09-03 19:57:22 +02:00
1 parent 17c29270cb
commit b0bc6ecc03
13 files changed
+1809 -168

No files matched your search

+5 -14
View File
@@ -178,20 +178,13 @@ function CreatePlantEncyclopediaVisual(
"PlantTile PlantEncyclopediaVisual";
const PlantKey =
GetPlantKeyById(
Plant.Id
const MatureImage =
GetPlantMatureImageSource(
Plant
);
const Images =
PlantKey === null
? []
: PlantImages[
PlantKey
] ?? [];
if (Images.length === 0) {
if (MatureImage === null) {
const Missing =
document.createElement(
"span"
@@ -220,9 +213,7 @@ function CreatePlantEncyclopediaVisual(
"PlantSprite";
Image.src =
Images[
Images.length - 1
];
MatureImage;
Image.alt =
Plant.Name;