slowly increase spider energy

This commit is contained in:
xXVevzZXx 2016-06-07 00:19:56 +02:00
parent 365dd0e561
commit 9e88174c36
1 changed files with 4 additions and 1 deletions

View File

@ -54,7 +54,7 @@ public class PerkSpiderLeap extends Perk
{
if (UtilEnt.isGrounded(player) || UtilBlock.solid(player.getLocation().getBlock().getRelative(BlockFace.DOWN)))
{
player.setExp(0.999f);
player.setExp((float) Math.min(0.999, player.getExp()+(1f/80f)));
_secondJump.remove(player);
}
@ -107,6 +107,9 @@ public class PerkSpiderLeap extends Perk
//Disable Flight
player.setAllowFlight(false);
if (player.getExp() < (1f/6f))
return;
//Velocity
UtilAction.velocity(player, 1.0, 0.2, 1.0, true);