diff options
author | jani270 <69345714+jani270@users.noreply.github.com> | 2023-06-13 18:06:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-13 18:06:08 +0200 |
commit | 4547611cda30c3169babb46fa71442ffd8fa80a1 (patch) | |
tree | 1d9231d9a8b8ce29d2384f0c8a87317cbad20565 /src/main/java/io | |
parent | 8ae7d865f07f5ad090cf7c36a4a6808c6dd42e28 (diff) | |
download | NotEnoughUpdates-4547611cda30c3169babb46fa71442ffd8fa80a1.tar.gz NotEnoughUpdates-4547611cda30c3169babb46fa71442ffd8fa80a1.tar.bz2 NotEnoughUpdates-4547611cda30c3169babb46fa71442ffd8fa80a1.zip |
Added new party hat sloth to item resolution query (#718)
Diffstat (limited to 'src/main/java/io')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/util/ItemResolutionQuery.java | 8 |
1 files changed, 8 insertions, 0 deletions
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); |