Skip to content

Commit

Permalink
Improve tooltip for blocked damage
Browse files Browse the repository at this point in the history
  • Loading branch information
xpdota committed Jul 11, 2024
1 parent f96fc15 commit 373a775
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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) {
Expand All @@ -20,4 +22,9 @@ protected String longName() {
public int getModifier() {
return getRawModifierByte();
}

@Override
protected @Nullable String describeModification() {
return "%d%% blocked".formatted(getModifier());
}
}

0 comments on commit 373a775

Please sign in to comment.