From 35aaf5293861410294a80bb6ec96951319a6a8b7 Mon Sep 17 00:00:00 2001 From: Lexer747 Date: Sat, 18 Apr 2026 20:49:57 +0100 Subject: [PATCH] remove leagues 4 and 5 code --- .../VariableSpeed/{Leagues.java => Leagues4and5.java} | 2 +- src/main/java/com/attacktimer/VariableSpeed/VariableSpeed.java | 2 +- src/test/java/com/attacktimer/IntegrationTests.java | 2 -- src/test/java/com/attacktimer/TormentedDemonsTest.java | 2 -- 4 files changed, 2 insertions(+), 6 deletions(-) rename src/main/java/com/attacktimer/VariableSpeed/{Leagues.java => Leagues4and5.java} (96%) diff --git a/src/main/java/com/attacktimer/VariableSpeed/Leagues.java b/src/main/java/com/attacktimer/VariableSpeed/Leagues4and5.java similarity index 96% rename from src/main/java/com/attacktimer/VariableSpeed/Leagues.java rename to src/main/java/com/attacktimer/VariableSpeed/Leagues4and5.java index 9812ba4..3a4e704 100644 --- a/src/main/java/com/attacktimer/VariableSpeed/Leagues.java +++ b/src/main/java/com/attacktimer/VariableSpeed/Leagues4and5.java @@ -36,7 +36,7 @@ import net.runelite.api.WorldType; import net.runelite.api.events.GameTick; -public class Leagues implements IVariableSpeed +public class Leagues4and5 implements IVariableSpeed { public int apply(final Client client, final AnimationData curAnimation, final AttackProcedure atkProcedure, final int baseSpeed, final int curSpeed) { diff --git a/src/main/java/com/attacktimer/VariableSpeed/VariableSpeed.java b/src/main/java/com/attacktimer/VariableSpeed/VariableSpeed.java index 4b4f958..f84abaa 100644 --- a/src/main/java/com/attacktimer/VariableSpeed/VariableSpeed.java +++ b/src/main/java/com/attacktimer/VariableSpeed/VariableSpeed.java @@ -62,7 +62,7 @@ public static void onGameTick(Client client, GameTick tick) private static final IVariableSpeed[] toApply = { // Order matters, apply leagues first, then any incremental modifications like rapid, or set effects. // Then overriding speeds last, which set a speed. - new Leagues(), + // new Leagues4and5(), // Incremental: new BloodMoonSet(), diff --git a/src/test/java/com/attacktimer/IntegrationTests.java b/src/test/java/com/attacktimer/IntegrationTests.java index 9621845..c8d75da 100644 --- a/src/test/java/com/attacktimer/IntegrationTests.java +++ b/src/test/java/com/attacktimer/IntegrationTests.java @@ -149,8 +149,6 @@ public Player pluginMockSetup() throws Exception LocalPoint localPoint = new LocalPoint(0, 0, mockedPlane); when(mockedPlayer.getWorldLocation()).thenReturn(worldPoint); when(mockedPlayer.getLocalLocation()).thenReturn(localPoint); - var memsWorld = EnumSet.of(WorldType.MEMBERS); - when(mockedClient.getWorldType()).thenReturn(memsWorld); // -- NPCs IndexedObjectSet mockedNpcs = mock(IndexedObjectSet.class); when(mockedNpcs.iterator()).thenReturn(Collections.emptyIterator()); diff --git a/src/test/java/com/attacktimer/TormentedDemonsTest.java b/src/test/java/com/attacktimer/TormentedDemonsTest.java index 56a1403..97c7cd2 100644 --- a/src/test/java/com/attacktimer/TormentedDemonsTest.java +++ b/src/test/java/com/attacktimer/TormentedDemonsTest.java @@ -147,8 +147,6 @@ public Player pluginMockSetup() throws Exception LocalPoint localPoint = new LocalPoint(0, 0, mockedPlane); when(mockedPlayer.getWorldLocation()).thenReturn(worldPoint); when(mockedPlayer.getLocalLocation()).thenReturn(localPoint); - var memsWorld = EnumSet.of(WorldType.MEMBERS); - when(mockedClient.getWorldType()).thenReturn(memsWorld); // -- NPCs worldViewNPCiter(td);