mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 23:27: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 {
|
public class CollaboratorEnchantment extends AttributedEnchantment {
|
||||||
protected CollaboratorEnchantment() {
|
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);
|
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<>();
|
private List<SoundEvent> sounds = new ArrayList<>();
|
||||||
|
|
||||||
protected PoisonedJokeEnchantment() {
|
protected PoisonedJokeEnchantment() {
|
||||||
super(Rarity.COMMON, true, 1, EquipmentSlot.values());
|
super(Rarity.VERY_RARE, true, 1, EquipmentSlot.values());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -9,7 +9,7 @@ import net.minecraft.entity.EquipmentSlot;
|
||||||
public class StressfulEnchantment extends SimpleEnchantment {
|
public class StressfulEnchantment extends SimpleEnchantment {
|
||||||
|
|
||||||
protected StressfulEnchantment() {
|
protected StressfulEnchantment() {
|
||||||
super(Rarity.COMMON, true, 3, EquipmentSlot.values());
|
super(Rarity.RARE, true, 3, EquipmentSlot.values());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -18,7 +18,7 @@ public class StressfulEnchantment extends SimpleEnchantment {
|
||||||
Bar bar = ((Pony)user).getMagicalReserves().getEnergy();
|
Bar bar = ((Pony)user).getMagicalReserves().getEnergy();
|
||||||
float targetPercent = (level / (float)getMaxLevel()) * 0.5F;
|
float targetPercent = (level / (float)getMaxLevel()) * 0.5F;
|
||||||
if (bar.getPercentFill() < targetPercent) {
|
if (bar.getPercentFill() < targetPercent) {
|
||||||
bar.add(20);
|
bar.add(10);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue