From 14084e270bbec4d76efc2fd222929d04a6dc6ac8 Mon Sep 17 00:00:00 2001 From: Sollace Date: Thu, 23 May 2024 17:36:57 +0100 Subject: [PATCH] Fix tooltip details --- .../minelittlepony/unicopia/entity/effect/EffectUtils.java | 4 ++-- src/main/resources/assets/unicopia/lang/en_us.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/entity/effect/EffectUtils.java b/src/main/java/com/minelittlepony/unicopia/entity/effect/EffectUtils.java index f60e6876..fd63fc84 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/effect/EffectUtils.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/effect/EffectUtils.java @@ -51,9 +51,9 @@ public interface EffectUtils { } static Text formatModifierChange(String modifierName, float change, boolean isDetrimental) { - return Text.translatable("attribute.modifier." + (change > 0 ? "plus" : "take") + ".addition", + return Text.literal(" ").append(Text.translatable("attribute.modifier." + (change > 0 ? "plus" : "take") + ".0", ItemStack.MODIFIER_FORMAT.format(Math.abs(change)), Text.translatable(modifierName) - ).formatted((isDetrimental ? change : -change) < 0 ? Formatting.DARK_GREEN : Formatting.RED); + ).formatted((isDetrimental ? change : -change) < 0 ? Formatting.DARK_GREEN : Formatting.RED)); } } diff --git a/src/main/resources/assets/unicopia/lang/en_us.json b/src/main/resources/assets/unicopia/lang/en_us.json index 91ec6e3c..60e60b2f 100644 --- a/src/main/resources/assets/unicopia/lang/en_us.json +++ b/src/main/resources/assets/unicopia/lang/en_us.json @@ -737,7 +737,7 @@ "affinity.unicopia.bad": "Bad", "affinity.unicopia.neutral": "Neutral", "affinity.unicopia.when_cast": "When Cast:", - "affinity.unicopia.corruption": " %s%.2f Corruption", + "affinity.unicopia.corruption": "Corruption", "gui.unicopia.trait.label": "Element of %s", "gui.unicopia.trait.group": "\n %s",