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)))
|
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);
|
_secondJump.remove(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -107,6 +107,9 @@ public class PerkSpiderLeap extends Perk
|
|||||||
//Disable Flight
|
//Disable Flight
|
||||||
player.setAllowFlight(false);
|
player.setAllowFlight(false);
|
||||||
|
|
||||||
|
if (player.getExp() < (1f/6f))
|
||||||
|
return;
|
||||||
|
|
||||||
//Velocity
|
//Velocity
|
||||||
UtilAction.velocity(player, 1.0, 0.2, 1.0, true);
|
UtilAction.velocity(player, 1.0, 0.2, 1.0, true);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user