From 1f538d2976ddf3aa291015945fbe298ab460e81c Mon Sep 17 00:00:00 2001 From: randy Date: Thu, 7 Nov 2024 15:56:58 -0700 Subject: [PATCH] Added agility exp gain when running --- Server/src/main/core/game/node/entity/impl/WalkingQueue.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Server/src/main/core/game/node/entity/impl/WalkingQueue.java b/Server/src/main/core/game/node/entity/impl/WalkingQueue.java index fbd9d2e36..f20768b70 100644 --- a/Server/src/main/core/game/node/entity/impl/WalkingQueue.java +++ b/Server/src/main/core/game/node/entity/impl/WalkingQueue.java @@ -193,6 +193,9 @@ public final class WalkingQueue { if (hasTimerActive(player, "hamstrung")) { rate *= 4; } + //Snowscape custom: gain agility exp when running. getLevel returns int so we convert to double for the math + double experience = (Double.valueOf(player.getSkills().getLevel(Skills.AGILITY)) + 10)/50; + player.getSkills().addExperience(Skills.AGILITY, experience); return rate; }