aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/miscgui/hex/HexItem.java
diff options
context:
space:
mode:
authorNopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>2022-11-11 13:24:50 +0000
committerGitHub <noreply@github.com>2022-11-11 14:24:50 +0100
commit5f521c98519a636e6139113887cdc2e223300333 (patch)
treeda7f8d6a8113c8fd7f7399c50e8ec4a26ecb893f /src/main/java/io/github/moulberry/notenoughupdates/miscgui/hex/HexItem.java
parent160f6d40ba3e0ce13e06533561f567f389547511 (diff)
downloadnotenoughupdates-5f521c98519a636e6139113887cdc2e223300333.tar.gz
notenoughupdates-5f521c98519a636e6139113887cdc2e223300333.tar.bz2
notenoughupdates-5f521c98519a636e6139113887cdc2e223300333.zip
Added support for enrichments to /hex (#428)
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/miscgui/hex/HexItem.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscgui/hex/HexItem.java42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/hex/HexItem.java b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/hex/HexItem.java
index 5b3b30ea..8d28dd1d 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/hex/HexItem.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/hex/HexItem.java
@@ -148,6 +148,39 @@ public class HexItem {
case "COLOSSAL_EXPERIENCE_BOTTLE":
this.itemType = ItemType.COLOSSAL_EXPERIENCE_BOTTLE;
break;
+ case "FEROCITY_ENRICHMENT":
+ this.itemType = ItemType.ENRICHMENT_FEROCITY;
+ break;
+ case "SEA_CREATURE_CHANCE_ENRICHMENT":
+ this.itemType = ItemType.ENRICHMENT_SCC;
+ break;
+ case "ATTACK_SPEED_ENRICHMENT":
+ this.itemType = ItemType.ENRICHMENT_ATTACK_SPEED;
+ break;
+ case "SPEED_ENRICHMENT":
+ this.itemType = ItemType.ENRICHMENT_SPEED;
+ break;
+ case "INTELLIGENCE_ENRICHMENT":
+ this.itemType = ItemType.ENRICHMENT_INTELLIGENCE;
+ break;
+ case "CRITICAL_DAMAGE_ENRICHMENT":
+ this.itemType = ItemType.ENRICHMENT_CRIT_DAMAGE;
+ break;
+ case "STRENGTH_ENRICHMENT":
+ this.itemType = ItemType.ENRICHMENT_STRENGTH;
+ break;
+ case "DEFENSE_ENRICHMENT":
+ this.itemType = ItemType.ENRICHMENT_DEFENSE;
+ break;
+ case "HEALTH_ENRICHMENT":
+ this.itemType = ItemType.ENRICHMENT_HEALTH;
+ break;
+ case "MAGIC_FIND_ENRICHMENT":
+ this.itemType = ItemType.ENRICHMENT_MAGIC_FIND;
+ break;
+ case "CRITICAL_CHANCE_ENRICHMENT":
+ this.itemType = ItemType.ENRICHMENT_CRIT_CHANCE;
+ break;
}
if (this.itemType == ItemType.UNKNOWN) {
for (String string : displayLore) {
@@ -261,4 +294,13 @@ public class HexItem {
itemType == ItemType.JADE_GEMSTONE || itemType == ItemType.AMBER_GEMSTONE ||
itemType == ItemType.OPAL_GEMSTONE || itemType == ItemType.TOPAZ_GEMSTONE;
}
+
+ public boolean isEnrichment() {
+ return itemType == ItemType.ENRICHMENT_DEFENSE || itemType == ItemType.ENRICHMENT_SCC ||
+ itemType == ItemType.ENRICHMENT_HEALTH || itemType == ItemType.ENRICHMENT_STRENGTH ||
+ itemType == ItemType.ENRICHMENT_SPEED || itemType == ItemType.ENRICHMENT_CRIT_DAMAGE ||
+ itemType == ItemType.ENRICHMENT_CRIT_CHANCE || itemType == ItemType.ENRICHMENT_ATTACK_SPEED ||
+ itemType == ItemType.ENRICHMENT_INTELLIGENCE || itemType == ItemType.ENRICHMENT_MAGIC_FIND ||
+ itemType == ItemType.ENRICHMENT_FEROCITY;
+ }
}