From 373a7754afb0430ced235af52634411c7b117294 Mon Sep 17 00:00:00 2001 From: XP Date: Thu, 11 Jul 2024 10:04:23 -0700 Subject: [PATCH] Improve tooltip for blocked damage --- .../actlines/events/abilityeffect/BlockedDamageEffect.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xivsupport/src/main/java/gg/xp/xivsupport/events/actlines/events/abilityeffect/BlockedDamageEffect.java b/xivsupport/src/main/java/gg/xp/xivsupport/events/actlines/events/abilityeffect/BlockedDamageEffect.java index 485eb043edf5..9c3bec19fbed 100644 --- a/xivsupport/src/main/java/gg/xp/xivsupport/events/actlines/events/abilityeffect/BlockedDamageEffect.java +++ b/xivsupport/src/main/java/gg/xp/xivsupport/events/actlines/events/abilityeffect/BlockedDamageEffect.java @@ -1,5 +1,7 @@ package gg.xp.xivsupport.events.actlines.events.abilityeffect; +import org.jetbrains.annotations.Nullable; + public class BlockedDamageEffect extends BaseDamageEffect implements HasDamageModifier { public BlockedDamageEffect(long flags, long value, long amount, HitSeverity severity) { @@ -20,4 +22,9 @@ protected String longName() { public int getModifier() { return getRawModifierByte(); } + + @Override + protected @Nullable String describeModification() { + return "%d%% blocked".formatted(getModifier()); + } }