aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjani270 <69345714+jani270@users.noreply.github.com>2023-06-13 18:06:08 +0200
committerGitHub <noreply@github.com>2023-06-13 18:06:08 +0200
commit4547611cda30c3169babb46fa71442ffd8fa80a1 (patch)
tree1d9231d9a8b8ce29d2384f0c8a87317cbad20565 /src
parent8ae7d865f07f5ad090cf7c36a4a6808c6dd42e28 (diff)
downloadNotEnoughUpdates-4547611cda30c3169babb46fa71442ffd8fa80a1.tar.gz
NotEnoughUpdates-4547611cda30c3169babb46fa71442ffd8fa80a1.tar.bz2
NotEnoughUpdates-4547611cda30c3169babb46fa71442ffd8fa80a1.zip
Added new party hat sloth to item resolution query (#718)
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/util/ItemResolutionQuery.java8
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);