added ring of wealth + updated licence

added ring of wealth + updated licences on all files.
This commit is contained in:
Kyleeld
2019-05-19 20:31:06 +01:00
parent d435fc5188
commit 05bb85a93b
10 changed files with 110 additions and 19 deletions

View File

@@ -1,6 +1,8 @@
/* /*
* Copyright (c) 2019, Owain van Brakel <https://github.com/Owain94> * Copyright (c) 2018, Alan Baumgartner <https://github.com/alanbaumgartner>
* Copyright (c) 2019, Alan Baumgartner <https://github.com/alanbaumgartner> * Copyright (c) 2018, https://runelitepl.us
* Copyright (c) 2018, Kyle <https://github.com/kyleeld>
* Copyright (c) 2018, Owain van Brakel <https://github.com/Owain94>
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
@@ -39,6 +41,7 @@ import net.runelite.client.plugins.easyscape.util.CombatBraceletMode;
import net.runelite.client.plugins.easyscape.util.SlayerRingMode; import net.runelite.client.plugins.easyscape.util.SlayerRingMode;
import net.runelite.client.plugins.easyscape.util.BurningAmuletMode; import net.runelite.client.plugins.easyscape.util.BurningAmuletMode;
import net.runelite.client.plugins.easyscape.util.XericsTalismanMode; import net.runelite.client.plugins.easyscape.util.XericsTalismanMode;
import net.runelite.client.plugins.easyscape.util.RingOfWealthMode;
@ConfigGroup("easyscape") @ConfigGroup("easyscape")
public interface EasyscapeConfig extends Config public interface EasyscapeConfig extends Config
@@ -748,13 +751,37 @@ public interface EasyscapeConfig extends Config
return XericsTalismanMode.XERICS_LOOKOUT; return XericsTalismanMode.XERICS_LOOKOUT;
} }
@ConfigItem(
keyName = "swapwealth",
name = "Swap wealth",
description = "",
position = 59,
group = "Jewellery swapper"
)
default boolean getRingofWealth()
{
return false;
}
@ConfigItem(
keyName = "ringofwealthmode",
name = "Mode",
description = "",
position = 60,
group = "Jewellery swapper"
)
default RingOfWealthMode getRingofWealthMode()
{
return RingOfWealthMode.GRAND_EXCHANGE;
}
// ----------------------------------------------------------- // // ----------------------------------------------------------- //
@ConfigItem( @ConfigItem(
keyName = "swapArdougneCape", keyName = "swapArdougneCape",
name = "Swap Ardougne Cape", name = "Swap Ardougne Cape",
description = "Enables swapping of teleport and wear.", description = "Enables swapping of teleport and wear.",
position = 59, position = 61,
group = "Equipment swapper" group = "Equipment swapper"
) )
default boolean getSwapArdougneCape() default boolean getSwapArdougneCape()
@@ -766,7 +793,7 @@ public interface EasyscapeConfig extends Config
keyName = "swapConstructionCape", keyName = "swapConstructionCape",
name = "Swap Construction Cape", name = "Swap Construction Cape",
description = "Enables swapping of teleport and wear.", description = "Enables swapping of teleport and wear.",
position = 60, position = 62,
group = "Equipment swapper" group = "Equipment swapper"
) )
default boolean getSwapConstructionCape() default boolean getSwapConstructionCape()
@@ -778,7 +805,7 @@ public interface EasyscapeConfig extends Config
keyName = "swapCraftingCape", keyName = "swapCraftingCape",
name = "Swap Crafting Cape", name = "Swap Crafting Cape",
description = "Enables swapping of teleport and wear.", description = "Enables swapping of teleport and wear.",
position = 61, position = 63,
group = "Equipment swapper" group = "Equipment swapper"
) )
default boolean getSwapCraftingCape() default boolean getSwapCraftingCape()
@@ -790,7 +817,7 @@ public interface EasyscapeConfig extends Config
keyName = "swapMagicCape", keyName = "swapMagicCape",
name = "Swap Magic Cape", name = "Swap Magic Cape",
description = "Enables swapping of spellbook and wear.", description = "Enables swapping of spellbook and wear.",
position = 62, position = 64,
group = "Equipment swapper" group = "Equipment swapper"
) )
default boolean getSwapMagicCape() default boolean getSwapMagicCape()
@@ -802,10 +829,10 @@ public interface EasyscapeConfig extends Config
keyName = "swapExplorersRing", keyName = "swapExplorersRing",
name = "Swap Explorers Ring", name = "Swap Explorers Ring",
description = "Enables swapping of spellbook and wear.", description = "Enables swapping of spellbook and wear.",
position = 63, position = 65,
group = "Equipment swapper" group = "Equipment swapper"
) )
default boolean getExplorersRing() default boolean getSwapExplorersRing()
{ {
return true; return true;
} }

View File

@@ -1,6 +1,8 @@
/* /*
* Copyright (c) 2019, Owain van Brakel <https://github.com/Owain94> * Copyright (c) 2018, Alan Baumgartner <https://github.com/alanbaumgartner>
* Copyright (c) 2019, Alan Baumgartner <https://github.com/alanbaumgartner> * Copyright (c) 2018, https://runelitepl.us
* Copyright (c) 2018, Kyle <https://github.com/kyleeld>
* Copyright (c) 2018, Owain van Brakel <https://github.com/Owain94>
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
@@ -375,7 +377,7 @@ public class EasyscapePlugin extends Plugin
swap(client, "Spellbook", option, target); swap(client, "Spellbook", option, target);
} }
if (target.toLowerCase().contains("explorer's ring") && config.getSwapMagicCape()) if (target.toLowerCase().contains("explorer's ring") && config.getSwapExplorersRing())
{ {
swap(client, "Teleport", option, target); swap(client, "Teleport", option, target);
} }
@@ -491,6 +493,14 @@ public class EasyscapePlugin extends Plugin
swap(client, config.getXericsTalismanMode().toString(), option, target); swap(client, config.getXericsTalismanMode().toString(), option, target);
} }
} }
if (config.getRingofWealth())
{
if (target.toLowerCase().contains("ring of wealth"))
{
swap(client, config.getRingofWealthMode().toString(), option, target);
}
}
} }
private void delete(int target) private void delete(int target)

View File

@@ -1,5 +1,6 @@
/* /*
* Copyright (c) 2019, Alan Baumgartner <https://github.com/alanbaumgartner> * Copyright (c) 2018, https://runelitepl.us
* Copyright (c) 2018, Kyle <https://github.com/kyleeld>
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without

View File

@@ -1,5 +1,6 @@
/* /*
* Copyright (c) 2019, Alan Baumgartner <https://github.com/alanbaumgartner> * Copyright (c) 2018, https://runelitepl.us
* Copyright (c) 2018, Kyle <https://github.com/kyleeld>
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without

View File

@@ -1,5 +1,6 @@
/* /*
* Copyright (c) 2019, Alan Baumgartner <https://github.com/alanbaumgartner> * Copyright (c) 2018, https://runelitepl.us
* Copyright (c) 2018, Kyle <https://github.com/kyleeld>
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without

View File

@@ -1,5 +1,6 @@
/* /*
* Copyright (c) 2019, Alan Baumgartner <https://github.com/alanbaumgartner> * Copyright (c) 2018, https://runelitepl.us
* Copyright (c) 2018, Kyle <https://github.com/kyleeld>
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without

View File

@@ -0,0 +1,47 @@
/*
* Copyright (c) 2018, https://runelitepl.us
* Copyright (c) 2018, Kyle <https://github.com/kyleeld>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package net.runelite.client.plugins.easyscape.util;
public enum RingOfWealthMode
{
MISCELLANIA("Miscellania"),
GRAND_EXCHANGE("Grand Exchange"),
FALADOR("Falador"),
DONDAKAN("Dondakan");
private final String name;
RingOfWealthMode(String name)
{
this.name = name;
}
@Override
public String toString()
{
return name;
}
}

View File

@@ -1,5 +1,6 @@
/* /*
* Copyright (c) 2019, Alan Baumgartner <https://github.com/alanbaumgartner> * Copyright (c) 2018, https://runelitepl.us
* Copyright (c) 2018, Kyle <https://github.com/kyleeld>
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without

View File

@@ -1,5 +1,6 @@
/* /*
* Copyright (c) 2019, Alan Baumgartner <https://github.com/alanbaumgartner> * Copyright (c) 2018, https://runelitepl.us
* Copyright (c) 2018, Kyle <https://github.com/kyleeld>
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without

View File

@@ -1,5 +1,6 @@
/* /*
* Copyright (c) 2019, Alan Baumgartner <https://github.com/alanbaumgartner> * Copyright (c) 2018, https://runelitepl.us
* Copyright (c) 2018, Kyle <https://github.com/kyleeld>
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without