Adjust rarities of enchantments (turns out common is way too common - weight is 10). May help with #52

This commit is contained in:
Sollace 2022-03-26 21:37:51 +02:00
parent 9f46fe9270
commit a672f8cec7
3 changed files with 4 additions and 4 deletions

View file

@ -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);
}

View file

@ -31,7 +31,7 @@ public class PoisonedJokeEnchantment extends SimpleEnchantment implements Identi
private List<SoundEvent> sounds = new ArrayList<>();
protected PoisonedJokeEnchantment() {
super(Rarity.COMMON, true, 1, EquipmentSlot.values());
super(Rarity.VERY_RARE, true, 1, EquipmentSlot.values());
}
@Override

View file

@ -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);
}
}
}