From a672f8cec7da75fe5075dfa640a3a9012f845dcb Mon Sep 17 00:00:00 2001 From: Sollace Date: Sat, 26 Mar 2022 21:37:51 +0200 Subject: [PATCH] Adjust rarities of enchantments (turns out common is way too common - weight is 10). May help with #52 --- .../unicopia/item/enchantment/CollaboratorEnchantment.java | 2 +- .../unicopia/item/enchantment/PoisonedJokeEnchantment.java | 2 +- .../unicopia/item/enchantment/StressfulEnchantment.java | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/item/enchantment/CollaboratorEnchantment.java b/src/main/java/com/minelittlepony/unicopia/item/enchantment/CollaboratorEnchantment.java index 58f658c3..caa62e2c 100644 --- a/src/main/java/com/minelittlepony/unicopia/item/enchantment/CollaboratorEnchantment.java +++ b/src/main/java/com/minelittlepony/unicopia/item/enchantment/CollaboratorEnchantment.java @@ -12,7 +12,7 @@ import net.minecraft.entity.attribute.EntityAttributeModifier.Operation; public class CollaboratorEnchantment extends AttributedEnchantment { protected CollaboratorEnchantment() { - super(Rarity.COMMON, EnchantmentTarget.WEAPON, false, 3, EquipmentSlot.MAINHAND); + super(Rarity.RARE, EnchantmentTarget.WEAPON, false, 3, EquipmentSlot.MAINHAND); this.addModifier(EntityAttributes.GENERIC_ATTACK_DAMAGE, this::getModifier); } diff --git a/src/main/java/com/minelittlepony/unicopia/item/enchantment/PoisonedJokeEnchantment.java b/src/main/java/com/minelittlepony/unicopia/item/enchantment/PoisonedJokeEnchantment.java index 330f2808..781c7215 100644 --- a/src/main/java/com/minelittlepony/unicopia/item/enchantment/PoisonedJokeEnchantment.java +++ b/src/main/java/com/minelittlepony/unicopia/item/enchantment/PoisonedJokeEnchantment.java @@ -31,7 +31,7 @@ public class PoisonedJokeEnchantment extends SimpleEnchantment implements Identi private List sounds = new ArrayList<>(); protected PoisonedJokeEnchantment() { - super(Rarity.COMMON, true, 1, EquipmentSlot.values()); + super(Rarity.VERY_RARE, true, 1, EquipmentSlot.values()); } @Override diff --git a/src/main/java/com/minelittlepony/unicopia/item/enchantment/StressfulEnchantment.java b/src/main/java/com/minelittlepony/unicopia/item/enchantment/StressfulEnchantment.java index 73e90a7b..fd22db07 100644 --- a/src/main/java/com/minelittlepony/unicopia/item/enchantment/StressfulEnchantment.java +++ b/src/main/java/com/minelittlepony/unicopia/item/enchantment/StressfulEnchantment.java @@ -9,7 +9,7 @@ import net.minecraft.entity.EquipmentSlot; public class StressfulEnchantment extends SimpleEnchantment { protected StressfulEnchantment() { - super(Rarity.COMMON, true, 3, EquipmentSlot.values()); + super(Rarity.RARE, true, 3, EquipmentSlot.values()); } @Override @@ -18,7 +18,7 @@ public class StressfulEnchantment extends SimpleEnchantment { Bar bar = ((Pony)user).getMagicalReserves().getEnergy(); float targetPercent = (level / (float)getMaxLevel()) * 0.5F; if (bar.getPercentFill() < targetPercent) { - bar.add(20); + bar.add(10); } } }