From 4547611cda30c3169babb46fa71442ffd8fa80a1 Mon Sep 17 00:00:00 2001 From: jani270 <69345714+jani270@users.noreply.github.com> Date: Tue, 13 Jun 2023 18:06:08 +0200 Subject: Added new party hat sloth to item resolution query (#718) --- .../moulberry/notenoughupdates/util/ItemResolutionQuery.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/ItemResolutionQuery.java b/src/main/java/io/github/moulberry/notenoughupdates/util/ItemResolutionQuery.java index 33ed176e..5dacf7ef 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/util/ItemResolutionQuery.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/util/ItemResolutionQuery.java @@ -121,6 +121,9 @@ public class ItemResolutionQuery { case "ABICASE": resolvedName = resolvePhoneCase(); break; + case "PARTY_HAT_SLOTH": + resolvedName = resolveSlothHatName(); + break; } } @@ -278,6 +281,11 @@ public class ItemResolutionQuery { return "PARTY_HAT_CRAB_" + color.toUpperCase(Locale.ROOT) + (crabHatYear == 2022 ? "_ANIMATED" : ""); } + private String resolveSlothHatName() { + String emoji = getExtraAttributes().getString("party_hat_emoji"); + return "PARTY_HAT_SLOTH_" + emoji.toUpperCase(Locale.ROOT); + } + private String resolvePhoneCase() { String model = getExtraAttributes().getString("model"); return "ABICASE_" + model.toUpperCase(Locale.ROOT); -- cgit