Merge pull request #108 from Raieverr/master
Plugin Cleanup and Organization
This commit is contained in:
@@ -65,9 +65,9 @@ import net.runelite.client.util.ImageUtil;
|
|||||||
@PluginDescriptor(
|
@PluginDescriptor(
|
||||||
name = "Barbarian Assault",
|
name = "Barbarian Assault",
|
||||||
description = "Show a timer to the next call change and game/wave duration in chat.",
|
description = "Show a timer to the next call change and game/wave duration in chat.",
|
||||||
tags = {"minigame", "overlay", "timer"},
|
tags = {"minigame", "overlay", "timer"}
|
||||||
type = PluginType.PVM
|
|
||||||
)
|
)
|
||||||
|
|
||||||
public class BarbarianAssaultPlugin extends Plugin {
|
public class BarbarianAssaultPlugin extends Plugin {
|
||||||
private static final int BA_WAVE_NUM_INDEX = 2;
|
private static final int BA_WAVE_NUM_INDEX = 2;
|
||||||
private static final String START_WAVE = "1";
|
private static final String START_WAVE = "1";
|
||||||
|
|||||||
@@ -282,14 +282,24 @@ public interface MenuEntrySwapperConfig extends Config
|
|||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ConfigItem(
|
||||||
|
keyName = "rockCake",
|
||||||
|
name = "Rock Cake Guzzle",
|
||||||
|
description = "Enables Left Click Guzzle to Rock Cake"
|
||||||
|
)
|
||||||
|
default boolean rockCake()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
keyName = "swapRogueschests",
|
keyName = "swapRogueschests",
|
||||||
name = "Rogueschests",
|
name = "Rogueschests",
|
||||||
description = "Swap Rogueschests from open to Search for traps"
|
description = "Swap Rogueschests from open to Search for traps"
|
||||||
)
|
)
|
||||||
default boolean swapRogueschests()
|
default boolean swapRogueschests()
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -450,30 +450,32 @@ public class MenuEntrySwapperPlugin extends Plugin
|
|||||||
swap("quick-travel", option, target, true);
|
swap("quick-travel", option, target, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (config.swapTravel() && option.equals("pass") && target.equals("energy barrier"))
|
else if (config.swapTravel() && option.equals("pass") && target.equals("energy barrier"))
|
||||||
{
|
{
|
||||||
swap("pay-toll(2-ecto)", option, target, true);
|
swap("pay-toll(2-ecto)", option, target, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (config.swapTravel() && option.equals("open") && target.equals("gate"))
|
else if (config.swapTravel() && option.equals("open") && target.equals("gate"))
|
||||||
{
|
{
|
||||||
swap("pay-toll(10gp)", option, target, true);
|
swap("pay-toll(10gp)", option, target, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (config.swapTravel() && option.equals("inspect") && target.equals("trapdoor"))
|
else if (config.swapTravel() && option.equals("inspect") && target.equals("trapdoor"))
|
||||||
{
|
{
|
||||||
swap("travel", option, target, true);
|
swap("travel", option, target, true);
|
||||||
}
|
}
|
||||||
else if (config.swapTravel() && option.equals("board") && target.equals("travel cart"))
|
|
||||||
{
|
|
||||||
swap("pay-fare", option, target, true);
|
|
||||||
}
|
|
||||||
else if (config.swapHarpoon() && option.equals("cage"))
|
else if (config.swapHarpoon() && option.equals("cage"))
|
||||||
{
|
{
|
||||||
swap("harpoon", option, target, true);
|
swap("harpoon", option, target, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (config.swapHarpoon() && (option.equals("big net") || option.equals("net")))
|
else if (config.swapHarpoon() && (option.equals("big net") || option.equals("net")))
|
||||||
{
|
{
|
||||||
swap("harpoon", option, target, true);
|
swap("harpoon", option, target, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (config.swapHomePortal() != HouseMode.ENTER && option.equals("enter"))
|
else if (config.swapHomePortal() != HouseMode.ENTER && option.equals("enter"))
|
||||||
{
|
{
|
||||||
switch (config.swapHomePortal())
|
switch (config.swapHomePortal())
|
||||||
@@ -501,57 +503,76 @@ public class MenuEntrySwapperPlugin extends Plugin
|
|||||||
swap("configure", option, target, false);
|
swap("configure", option, target, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (config.swapFairyRing() == FairyRingMode.ZANARIS && option.equals("tree"))
|
else if (config.swapFairyRing() == FairyRingMode.ZANARIS && option.equals("tree"))
|
||||||
{
|
{
|
||||||
swap("zanaris", option, target, false);
|
swap("zanaris", option, target, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (config.swapBoxTrap() && (option.equals("check") || option.equals("dismantle")))
|
else if (config.swapBoxTrap() && (option.equals("check") || option.equals("dismantle")))
|
||||||
{
|
{
|
||||||
swap("reset", option, target, true);
|
swap("reset", option, target, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (config.swapBoxTrap() && option.equals("take"))
|
else if (config.swapBoxTrap() && option.equals("take"))
|
||||||
{
|
{
|
||||||
swap("lay", option, target, true);
|
swap("lay", option, target, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (config.swapChase() && option.equals("pick-up"))
|
else if (config.swapChase() && option.equals("pick-up"))
|
||||||
{
|
{
|
||||||
swap("chase", option, target, true);
|
swap("chase", option, target, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (config.swapBirdhouseEmpty() && option.equals("interact") && target.contains("birdhouse"))
|
else if (config.swapBirdhouseEmpty() && option.equals("interact") && target.contains("birdhouse"))
|
||||||
{
|
{
|
||||||
swap("empty", option, target, true);
|
swap("empty", option, target, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (config.swapQuick() && option.equals("ring"))
|
else if (config.swapQuick() && option.equals("ring"))
|
||||||
{
|
{
|
||||||
swap("quick-start", option, target, true);
|
swap("quick-start", option, target, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (config.swapQuick() && option.equals("pass"))
|
else if (config.swapQuick() && option.equals("pass"))
|
||||||
{
|
{
|
||||||
swap("quick-pass", option, target, true);
|
swap("quick-pass", option, target, true);
|
||||||
swap("quick pass", option, target, true);
|
swap("quick pass", option, target, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (config.swapQuick() && option.equals("open"))
|
else if (config.swapQuick() && option.equals("open"))
|
||||||
{
|
{
|
||||||
swap("quick-open", option, target, true);
|
swap("quick-open", option, target, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (config.swapAdmire() && option.equals("admire"))
|
else if (config.swapAdmire() && option.equals("admire"))
|
||||||
{
|
{
|
||||||
swap("teleport", option, target, true);
|
swap("teleport", option, target, true);
|
||||||
swap("spellbook", option, target, true);
|
swap("spellbook", option, target, true);
|
||||||
swap("perks", option, target, true);
|
swap("perks", option, target, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (config.swapPrivate() && option.equals("shared"))
|
else if (config.swapPrivate() && option.equals("shared"))
|
||||||
{
|
{
|
||||||
swap("private", option, target, true);
|
swap("private", option, target, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (config.swapPick() && option.equals("pick"))
|
else if (config.swapPick() && option.equals("pick"))
|
||||||
{
|
{
|
||||||
swap("pick-lots", option, target, true);
|
swap("pick-lots", option, target, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (config.swapRogueschests() && target.contains("chest"))
|
else if (config.swapRogueschests() && target.contains("chest"))
|
||||||
{
|
{
|
||||||
swap("search for traps", option, target, true);
|
swap("search for traps", option, target, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if (config.rockCake() && option.equals("eat"))
|
||||||
|
{
|
||||||
|
swap("guzzle", option, target, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
else if (config.shiftClickCustomization() && shiftModifier && !option.equals("use"))
|
else if (config.shiftClickCustomization() && shiftModifier && !option.equals("use"))
|
||||||
{
|
{
|
||||||
Integer customOption = getSwapConfig(eventId);
|
Integer customOption = getSwapConfig(eventId);
|
||||||
@@ -561,6 +582,7 @@ public class MenuEntrySwapperPlugin extends Plugin
|
|||||||
swap("use", option, target, true);
|
swap("use", option, target, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Put all item-related swapping after shift-click
|
// Put all item-related swapping after shift-click
|
||||||
else if (config.swapTeleportItem() && option.equals("wear"))
|
else if (config.swapTeleportItem() && option.equals("wear"))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -37,11 +37,13 @@ import net.runelite.client.plugins.PluginDescriptor;
|
|||||||
|
|
||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
import net.runelite.client.plugins.PluginType;
|
||||||
|
|
||||||
@PluginDescriptor(
|
@PluginDescriptor(
|
||||||
name = "Music Track Customizer",
|
name = "Music Track Customizer",
|
||||||
description = "Customize what track plays and how it sounds, with local files",
|
description = "Customize what track plays and how it sounds, with local files",
|
||||||
tags = {"music", "sound"},
|
tags = {"music", "sound"},
|
||||||
|
type = PluginType.UTILITY,
|
||||||
enabledByDefault = false
|
enabledByDefault = false
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -38,13 +38,15 @@ import net.runelite.client.eventbus.Subscribe;
|
|||||||
import net.runelite.client.plugins.Plugin;
|
import net.runelite.client.plugins.Plugin;
|
||||||
import net.runelite.client.plugins.PluginDependency;
|
import net.runelite.client.plugins.PluginDependency;
|
||||||
import net.runelite.client.plugins.PluginDescriptor;
|
import net.runelite.client.plugins.PluginDescriptor;
|
||||||
|
import net.runelite.client.plugins.PluginType;
|
||||||
import net.runelite.client.plugins.xptracker.XpTrackerPlugin;
|
import net.runelite.client.plugins.xptracker.XpTrackerPlugin;
|
||||||
import net.runelite.client.ui.overlay.OverlayManager;
|
import net.runelite.client.ui.overlay.OverlayManager;
|
||||||
|
|
||||||
@PluginDescriptor(
|
@PluginDescriptor(
|
||||||
name = "Smelting",
|
name = "Smelting",
|
||||||
description = "Show Smelting stats",
|
description = "Show Smelting stats",
|
||||||
tags = {"overlay", "skilling"}
|
tags = {"overlay", "skilling"},
|
||||||
|
type = PluginType.UTILITY
|
||||||
)
|
)
|
||||||
@PluginDependency(XpTrackerPlugin.class)
|
@PluginDependency(XpTrackerPlugin.class)
|
||||||
public class SmeltingPlugin extends Plugin
|
public class SmeltingPlugin extends Plugin
|
||||||
@@ -127,4 +129,3 @@ public class SmeltingPlugin extends Plugin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -44,13 +44,16 @@ import net.runelite.api.events.GroundObjectSpawned;
|
|||||||
import net.runelite.client.eventbus.Subscribe;
|
import net.runelite.client.eventbus.Subscribe;
|
||||||
import net.runelite.client.plugins.Plugin;
|
import net.runelite.client.plugins.Plugin;
|
||||||
import net.runelite.client.plugins.PluginDescriptor;
|
import net.runelite.client.plugins.PluginDescriptor;
|
||||||
|
import net.runelite.client.plugins.PluginType;
|
||||||
import net.runelite.client.ui.overlay.OverlayManager;
|
import net.runelite.client.ui.overlay.OverlayManager;
|
||||||
|
|
||||||
@PluginDescriptor(
|
@PluginDescriptor(
|
||||||
name = "Tarn's Lair",
|
name = "Tarn's Lair",
|
||||||
description = "Mark tiles and clickboxes to help traverse the maze",
|
description = "Mark tiles and clickboxes to help traverse the maze",
|
||||||
tags = {"agility", "maze", "minigame", "overlay"}
|
tags = {"agility", "maze", "minigame", "overlay"},
|
||||||
|
type = PluginType.UTILITY
|
||||||
)
|
)
|
||||||
|
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class TarnsLairPlugin extends Plugin
|
public class TarnsLairPlugin extends Plugin
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ import net.runelite.client.ui.overlay.OverlayManager;
|
|||||||
import net.runelite.client.util.ImageUtil;
|
import net.runelite.client.util.ImageUtil;
|
||||||
|
|
||||||
@PluginDescriptor(
|
@PluginDescriptor(
|
||||||
name = "Vorkath",
|
name = "Vorkath Helper",
|
||||||
description = "Count vorkath attacks, and which phase is coming next",
|
description = "Count vorkath attacks, and which phase is coming next",
|
||||||
tags = {"combat", "overlay", "pve", "pvm"},
|
tags = {"combat", "overlay", "pve", "pvm"},
|
||||||
type = PluginType.PVM
|
type = PluginType.PVM
|
||||||
@@ -192,4 +192,4 @@ public class VorkathPlugin extends Plugin
|
|||||||
vorkath.setLastTickAnimation(animationId);
|
vorkath.setLastTickAnimation(animationId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user