1
0
Fork 0
mirror of https://github.com/Sollace/Unicopia.git synced 2025-04-18 17:14:03 +02:00

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

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) {
if (user instanceof Pony) {
Bar bar = ((Pony)user).getMagicalReserves().getEnergy();
float targetPercent = (level / (float)getMaxLevel()) * 0.5F;
float targetPercent = (level / (float)getMaxLevel()) * 0.25F;
if (bar.getPercentFill() < targetPercent) {
bar.add(10);
}