From 39c1a79d89029b4fa04f63136bc5c7707043621f Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Wed, 23 Apr 2025 03:58:34 +0200 Subject: [PATCH] fix(webui): use proper 'size' abbreviations for vallis & deimos fish --- .../custom/getItemListsController.ts | 26 +++++++++++++++---- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/src/controllers/custom/getItemListsController.ts b/src/controllers/custom/getItemListsController.ts index 1ff78b62..09e42dd2 100644 --- a/src/controllers/custom/getItemListsController.ts +++ b/src/controllers/custom/getItemListsController.ts @@ -115,12 +115,28 @@ const getItemListsController: RequestHandler = (req, response) => { let name = getString(item.name, lang); if ("dissectionParts" in item) { name = getString("/Lotus/Language/Fish/FishDisplayName", lang).split("|FISH_NAME|").join(name); - if (uniqueName.indexOf("Large") != -1) { - name = name.split("|FISH_SIZE|").join(getString("/Lotus/Language/Fish/FishSizeLargeAbbrev", lang)); - } else if (uniqueName.indexOf("Medium") != -1) { - name = name.split("|FISH_SIZE|").join(getString("/Lotus/Language/Fish/FishSizeMediumAbbrev", lang)); + if (item.syndicateTag == "CetusSyndicate") { + if (uniqueName.indexOf("Large") != -1) { + name = name.split("|FISH_SIZE|").join(getString("/Lotus/Language/Fish/FishSizeLargeAbbrev", lang)); + } else if (uniqueName.indexOf("Medium") != -1) { + name = name.split("|FISH_SIZE|").join(getString("/Lotus/Language/Fish/FishSizeMediumAbbrev", lang)); + } else { + name = name.split("|FISH_SIZE|").join(getString("/Lotus/Language/Fish/FishSizeSmallAbbrev", lang)); + } } else { - name = name.split("|FISH_SIZE|").join(getString("/Lotus/Language/Fish/FishSizeSmallAbbrev", lang)); + if (uniqueName.indexOf("Large") != -1) { + name = name + .split("|FISH_SIZE|") + .join(getString("/Lotus/Language/SolarisVenus/RobofishAgeCategoryElderAbbrev", lang)); + } else if (uniqueName.indexOf("Medium") != -1) { + name = name + .split("|FISH_SIZE|") + .join(getString("/Lotus/Language/SolarisVenus/RobofishAgeCategoryMatureAbbrev", lang)); + } else { + name = name + .split("|FISH_SIZE|") + .join(getString("/Lotus/Language/SolarisVenus/RobofishAgeCategoryYoungAbbrev", lang)); + } } } if (