From f5ab4cbb3df3606dea0062d3e3cbdbad79d7dfd6 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Mon, 7 Mar 2022 12:38:32 +0000 Subject: [PATCH] Updated succession --- .../enchantments/ecoenchants/normal/Succession.java | 2 +- .../src/main/resources/enchants/normal/succession.yml | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Succession.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Succession.java index e6323259..d7e8e96b 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Succession.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Succession.java @@ -40,7 +40,7 @@ public class Succession extends EcoEnchant { if (this.getConfig().getBool(EcoEnchants.CONFIG_LOCATION + "per-arrow-damage") && shooter instanceof Player) { DurabilityUtils.damageItem((Player) shooter, ((Player) shooter).getInventory().getItemInMainHand(), 1); } - }, i * 2L); + }, (long) i * this.getConfig().getInt(EcoEnchants.CONFIG_LOCATION + "delay-between-arrows")); } } } diff --git a/eco-core/core-plugin/src/main/resources/enchants/normal/succession.yml b/eco-core/core-plugin/src/main/resources/enchants/normal/succession.yml index 4535202d..0f6269c6 100644 --- a/eco-core/core-plugin/src/main/resources/enchants/normal/succession.yml +++ b/eco-core/core-plugin/src/main/resources/enchants/normal/succession.yml @@ -13,19 +13,21 @@ obtaining: rarity: legendary general-config: - flags: [] + flags: [ ] targets: - bow grindstoneable: true disabled-in-worlds: [ ] requirements: - list: [] - not-met-lore: [] + list: [ ] + not-met-lore: [ ] conflicts: - tripleshot - pentashot - buckshot + maximum-level: 4 config: extra-arrows-per-level: 1 - per-arrow-damage: true #If set to false, then it will only take 1 durability \ No newline at end of file + per-arrow-damage: true # If set to false, then it will only take 1 durability + delay-between-arrows: 4 # Tick delay between each subsequent arrow \ No newline at end of file