slowly increase spider energy
This commit is contained in:
parent
aa1c599b5e
commit
1aba217c55
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user