aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoKM <mcazzyman@gmail.com>2021-09-13 21:58:13 +0200
committerDoKM <mcazzyman@gmail.com>2021-09-13 21:58:13 +0200
commit8f7dd510c4245deae31c301660f6b55edab32ac3 (patch)
treed06327be1538b483221aee538bd81f337c2a1ef1
parenteca2d88ab5f360bd9923879223d0d854a5fa78f2 (diff)
downloadNotEnoughUpdates-8f7dd510c4245deae31c301660f6b55edab32ac3.tar.gz
NotEnoughUpdates-8f7dd510c4245deae31c301660f6b55edab32ac3.tar.bz2
NotEnoughUpdates-8f7dd510c4245deae31c301660f6b55edab32ac3.zip
Fix accessory bag overlay's reforge stats detection
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscgui/AccessoryBagOverlay.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/AccessoryBagOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/AccessoryBagOverlay.java
index ec676ec5..ee83cb28 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/AccessoryBagOverlay.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/AccessoryBagOverlay.java
@@ -752,7 +752,7 @@ public class AccessoryBagOverlay {
}
}*/
- private static final String STAT_PATTERN_BONUS_END = ": (?:\\+|-)[0-9]+(?:\\.[0-9]+)?\\%? \\([a-zA-Z]+ ((?:\\+|-)[0-9]+)%?";
+ private static final String STAT_PATTERN_BONUS_END = ": (?:\\+|-)[0-9]+(?:\\.[0-9]+)?\\%? \\(((?:\\+|-)[0-9]+)%?";
private static final Pattern HEALTH_PATTERN_BONUS = Pattern.compile("^Health"+STAT_PATTERN_BONUS_END);
private static final Pattern DEFENCE_PATTERN_BONUS = Pattern.compile("^Defense"+STAT_PATTERN_BONUS_END);