mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-24 05:47:59 +01:00
Adjust rarities of enchantments (turns out common is way too common - weight is 10). May help with #52
This commit is contained in:
parent
9f46fe9270
commit
a672f8cec7
3 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue