From 9e88174c3682ba27a8c7b81f3e094f86e927a440 Mon Sep 17 00:00:00 2001 From: xXVevzZXx Date: Tue, 7 Jun 2016 00:19:56 +0200 Subject: [PATCH] slowly increase spider energy --- .../src/nautilus/game/arcade/kit/perks/PerkSpiderLeap.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/kit/perks/PerkSpiderLeap.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/kit/perks/PerkSpiderLeap.java index c25b2959d..37d07564d 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/kit/perks/PerkSpiderLeap.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/kit/perks/PerkSpiderLeap.java @@ -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);