slowly increase spider energy

This commit is contained in:
xXVevzZXx 2016-06-07 00:19:56 +02:00 committed by cnr
parent aa1c599b5e
commit 1aba217c55

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);