Added more stray aspect configurability

This commit is contained in:
Auxilor
2020-11-10 18:43:00 +00:00
parent 4c441dacfc
commit 9092dca013
2 changed files with 6 additions and 3 deletions

View File

@@ -28,7 +28,9 @@ public final class StrayAspect extends EcoEnchant {
if(!EnchantmentUtils.passedChance(this, level))
return;
victim.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, level * 10, level));
victim.addPotionEffect(new PotionEffect(PotionEffectType.SLOW_DIGGING, level * 10, level));
int ticksPerLevel = this.getConfig().getInt(EcoEnchants.CONFIG_LOCATION + "ticks-per-level");
victim.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, level * ticksPerLevel, level));
victim.addPotionEffect(new PotionEffect(PotionEffectType.SLOW_DIGGING, level * ticksPerLevel, level));
}
}

View File

@@ -21,4 +21,5 @@ general-config:
config:
allow-not-fully-charged: false
chance-per-level: 1 #chance of slowness per level
chance-per-level: 1 #chance of slowness per level
ticks-per-level: 10