aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-01-30 15:51:02 +0900
committersyeyoung <cyong06@naver.com>2021-01-30 15:51:02 +0900
commitb5df27751269c372191dc26491121eb052138e03 (patch)
tree05aa884f03486d591c11ded5a4ec628d386a267c /src/main/java/kr
parentfa5f42ffa09405c51f1c4182674c052fb20ca230 (diff)
downloadSkyblock-Dungeons-Guide-b5df27751269c372191dc26491121eb052138e03.tar.gz
Skyblock-Dungeons-Guide-b5df27751269c372191dc26491121eb052138e03.tar.bz2
Skyblock-Dungeons-Guide-b5df27751269c372191dc26491121eb052138e03.zip
boss health update
Diffstat (limited to 'src/main/java/kr')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/features/impl/boss/FeatureBossHealth.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/boss/FeatureBossHealth.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/boss/FeatureBossHealth.java
index 7bb0c43f..229c4251 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/boss/FeatureBossHealth.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/boss/FeatureBossHealth.java
@@ -26,6 +26,7 @@ public class FeatureBossHealth extends GuiFeature {
parameters.put("color", new FeatureParameter<Color>("color", "Color", "Color of text", Color.orange, "color"));
parameters.put("totalHealth", new FeatureParameter<Boolean>("totalHealth", "show total health", "Show total health along with current health", false, "boolean"));
parameters.put("formatHealth", new FeatureParameter<Boolean>("formatHealth", "format health", "1234568 -> 1m", true, "boolean"));
+ parameters.put("ignoreInattackable", new FeatureParameter<Boolean>("ignoreInattackable", "Don't show health of in-attackable enemy", "For example, do not show guardians health when they're not attackable", false, "boolean"));
}
SkyblockStatus skyblockStatus = e.getDungeonsGuide().getSkyblockStatus();
@@ -40,7 +41,9 @@ public class FeatureBossHealth extends GuiFeature {
FontRenderer fr = getFontRenderer();
boolean format = this.<Boolean>getParameter("formatHealth").getValue();
boolean total = this.<Boolean>getParameter("totalHealth").getValue();
+ boolean ignore = this.<Boolean>getParameter("ignoreInattackable").getValue();
for (HealthData heal : healths) {
+ if (ignore && !heal.isAttackable()) continue;
fr.drawString(heal.getName() + ": " + (format ? TextUtils.format(heal.getHealth()) : heal.getHealth()) + (total ? "/"+(format ? TextUtils.format(heal.getMaxHealth()) : heal.getMaxHealth()) : ""), 0, i, this.<Color>getParameter("color").getValue().getRGB());
i += 8;
}