mirror of
https://git.srhtnin.garden/sarah/srhtnin.github.io.git
synced 2026-10-14 02:38:12 +02:00
bleh
This commit is contained in:
1 parent
17c29270cb
commit
b0bc6ecc03
13 files changed
+1809
-168
No files matched your search
+5
-14
@@ -951,20 +951,13 @@ function CreateShopPlantVisual(
|
||||
"PlantTile ShopPlantImageFrame";
|
||||
|
||||
|
||||
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"
|
||||
@@ -989,9 +982,7 @@ function CreateShopPlantVisual(
|
||||
"PlantSprite";
|
||||
|
||||
Image.src =
|
||||
Images[
|
||||
Images.length - 1
|
||||
];
|
||||
MatureImage;
|
||||
|
||||
Image.alt =
|
||||
Plant.Name;
|
||||
|
||||
Reference in new issue
Block a user