9
0
mirror of https://github.com/Auxilor/EcoSkills.git synced 2026-01-04 15:41:36 +00:00

Fixed bugs

This commit is contained in:
Auxilor
2021-08-23 18:25:15 +01:00
parent e9c494081a
commit a45351b1b5
2 changed files with 3 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ import com.google.common.collect.ImmutableSet;
import com.willfp.eco.core.config.updating.ConfigUpdater;
import com.willfp.ecoskills.effects.effects.EffectAcceleratedEscape;
import com.willfp.ecoskills.effects.effects.EffectBountifulHarvest;
import com.willfp.ecoskills.effects.effects.EffectBravery;
import com.willfp.ecoskills.effects.effects.EffectDynamicMining;
import com.willfp.ecoskills.effects.effects.EffectEndangering;
import com.willfp.ecoskills.effects.effects.EffectInfernalResistance;
@@ -54,7 +55,7 @@ public class Effects {
public static final Effect GOLDEN_YIELD = new EffectGoldenYield();
public static final Effect DODGING = new EffectDodging();
public static final Effect ACCELERATED_ESCAPE = new EffectAcceleratedEscape();
public static final Effect BRAVERY = new EffectInfernalResistance();
public static final Effect BRAVERY = new EffectBravery();
public static final Effect INFERNAL_RESISTANCE = new EffectInfernalResistance();
public static final Effect DAZZLE = new EffectDazzle();
public static final Effect STRONG_IMPACT = new EffectStrongImpact();

View File

@@ -20,7 +20,7 @@ class EffectReimbursement : Effect(
@EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true)
fun handleLevelling(event: EnchantItemEvent) {
val player = event.enchanter
val cost = event.expLevelCost
val cost = event.whichButton() + 3
val chance = config.getDouble("chance-per-level") * player.getEffectLevel(this)