mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-01-27 01:11:21 +01:00
Added description placeholders to criticals
This commit is contained in:
parent
df6d724950
commit
18ae8661c0
@ -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,
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
name: "Criticals"
|
||||
description: Increases critical damage.
|
||||
description: Increases critical damage by &c%value%%&8 per level.
|
||||
enabled: true
|
||||
|
||||
obtaining:
|
||||
|
Loading…
Reference in New Issue
Block a user