Added description placeholders to criticals

This commit is contained in:
Auxilor 2021-08-04 18:22:18 +01:00
parent df6d724950
commit 18ae8661c0
2 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,6 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.normal;
import com.willfp.eco.util.NumberUtils;
import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.meta.EnchantmentType;
@ -14,6 +15,11 @@ public class Criticals extends EcoEnchant {
);
}
@Override
public String getPlaceholder(final int level) {
return NumberUtils.format(this.getConfig().getDouble(EcoEnchants.CONFIG_LOCATION + "multiplier") * 100 * level);
}
@Override
public void onMeleeAttack(@NotNull final LivingEntity attacker,
@NotNull final LivingEntity victim,

View File

@ -3,7 +3,7 @@
#
name: "Criticals"
description: Increases critical damage.
description: Increases critical damage by &c%value%%&8 per level.
enabled: true
obtaining: