mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 23:27:59 +01:00
Make stressed enchantment less nauseating. (Though not by too much, it is a curse after all) Closes #52
This commit is contained in:
parent
a672f8cec7
commit
8aebf82eff
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue