Skip to content

Commit

Permalink
Minor improvements to 'has no effect' message
Browse files Browse the repository at this point in the history
  • Loading branch information
xpdota committed Jan 29, 2024
1 parent be95950 commit 29d3610
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ public String toString() {

@Override
public String getBaseDescription() {
String formatted = String.format("Status %x has no effect", status.getId());
StatusEffectInfo sei = StatusEffectLibrary.forId(status.getId());
String formatted = String.format("Status 0x%x (%s) has no effect", status.getId(), sei == null ? "Unknown" : sei.name());
if (stacks > 0) {
formatted += String.format(" (%s stacks)", stacks);
}
Expand Down

0 comments on commit 29d3610

Please sign in to comment.