aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-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);