mirror of
https://git.srhtnin.garden/sarah/srhtnin.github.io.git
synced 2026-10-14 10:48:12 +02:00
bleh
This commit is contained in:
1 parent
17c29270cb
commit
b0bc6ecc03
13 files changed
+1809
-168
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user