Make stressed enchantment less nauseating. (Though not by too much, it is a curse after all) Closes #52

This commit is contained in:
Sollace 2022-03-26 21:41:35 +02:00
parent a672f8cec7
commit 8aebf82eff

View file

@ -16,7 +16,7 @@ public class StressfulEnchantment extends SimpleEnchantment {
public void onUserTick(Living<?> user, int level) { public void onUserTick(Living<?> user, int level) {
if (user instanceof Pony) { if (user instanceof Pony) {
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.25F;
if (bar.getPercentFill() < targetPercent) { if (bar.getPercentFill() < targetPercent) {
bar.add(10); bar.add(10);
} }