Merge branch 'master' of https://github.com/runelite/runelite
Conflicts: pom.xml runelite-client/src/main/java/net/runelite/client/plugins/boosts/BoostsPlugin.java runelite-client/src/main/java/net/runelite/client/plugins/examine/ExaminePlugin.java
This commit is contained in:
@@ -126,7 +126,7 @@ public class WesternDiaryRequirement extends GenericDiaryRequirement
|
|||||||
new QuestRequirement(Quest.TREE_GNOME_VILLAGE));
|
new QuestRequirement(Quest.TREE_GNOME_VILLAGE));
|
||||||
|
|
||||||
// ELITE
|
// ELITE
|
||||||
add("Fletch a Magic Longbow in the Elven lands.",
|
add("Fletch a Magic Longbow in Tirannwn.",
|
||||||
new SkillRequirement(Skill.FLETCHING, 85),
|
new SkillRequirement(Skill.FLETCHING, 85),
|
||||||
new QuestRequirement(Quest.MOURNINGS_END_PART_I));
|
new QuestRequirement(Quest.MOURNINGS_END_PART_I));
|
||||||
add("Kill the Thermonuclear Smoke devil (Does not require task).",
|
add("Kill the Thermonuclear Smoke devil (Does not require task).",
|
||||||
|
|||||||
@@ -38,15 +38,23 @@ public interface BoostsConfig extends Config
|
|||||||
NEVER
|
NEVER
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum DisplayBoosts
|
||||||
|
{
|
||||||
|
NONE,
|
||||||
|
COMBAT,
|
||||||
|
NON_COMBAT,
|
||||||
|
BOTH
|
||||||
|
}
|
||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
keyName = "enableSkill",
|
keyName = "displayBoosts",
|
||||||
name = "Enable Skill Boosts",
|
name = "Display Boosts",
|
||||||
description = "Configures whether or not to display skill boost information",
|
description = "Configures which skill boosts to display",
|
||||||
position = 1
|
position = 1
|
||||||
)
|
)
|
||||||
default boolean enableSkill()
|
default DisplayBoosts displayBoosts()
|
||||||
{
|
{
|
||||||
return true;
|
return DisplayBoosts.BOTH;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
|
|||||||
@@ -332,16 +332,26 @@ public class BoostsPlugin extends Plugin
|
|||||||
|
|
||||||
private void updateShownSkills()
|
private void updateShownSkills()
|
||||||
{
|
{
|
||||||
|
switch (config.displayBoosts())
|
||||||
if (this.enableSkill)
|
if (this.enableSkill)
|
||||||
{
|
{
|
||||||
shownSkills.addAll(BOOSTABLE_NON_COMBAT_SKILLS);
|
case NONE:
|
||||||
|
shownSkills.removeAll(BOOSTABLE_COMBAT_SKILLS);
|
||||||
|
shownSkills.removeAll(BOOSTABLE_NON_COMBAT_SKILLS);
|
||||||
|
break;
|
||||||
|
case COMBAT:
|
||||||
|
shownSkills.addAll(BOOSTABLE_COMBAT_SKILLS);
|
||||||
|
shownSkills.removeAll(BOOSTABLE_NON_COMBAT_SKILLS);
|
||||||
|
break;
|
||||||
|
case NON_COMBAT:
|
||||||
|
shownSkills.removeAll(BOOSTABLE_COMBAT_SKILLS);
|
||||||
|
shownSkills.addAll(BOOSTABLE_NON_COMBAT_SKILLS);
|
||||||
|
break;
|
||||||
|
case BOTH:
|
||||||
|
shownSkills.addAll(BOOSTABLE_COMBAT_SKILLS);
|
||||||
|
shownSkills.addAll(BOOSTABLE_NON_COMBAT_SKILLS);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
shownSkills.removeAll(BOOSTABLE_NON_COMBAT_SKILLS);
|
|
||||||
}
|
|
||||||
|
|
||||||
shownSkills.addAll(BOOSTABLE_COMBAT_SKILLS);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateBoostedStats()
|
private void updateBoostedStats()
|
||||||
|
|||||||
@@ -65,7 +65,9 @@ public class DeathIndicatorPlugin extends Plugin
|
|||||||
12850, // Lumbridge
|
12850, // Lumbridge
|
||||||
11828, // Falador
|
11828, // Falador
|
||||||
12342, // Edgeville
|
12342, // Edgeville
|
||||||
11062 // Camelot
|
11062, // Camelot
|
||||||
|
13150, // Prifddinas (it's possible to spawn in 2 adjacent regions)
|
||||||
|
12894 // Prifddinas
|
||||||
);
|
);
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
|
|||||||
@@ -308,7 +308,11 @@ public class ExaminePlugin extends Plugin
|
|||||||
return new int[]{widgetItem.getItemQuantity(), widgetItem.getItemId()};
|
return new int[]{widgetItem.getItemQuantity(), widgetItem.getItemId()};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (WidgetInfo.BANK_ITEM_CONTAINER.getGroupId() == widgetGroup)
|
else if (WidgetInfo.BANK_ITEM_CONTAINER.getGroupId() == widgetGroup
|
||||||
|
|| WidgetInfo.CLUE_SCROLL_REWARD_ITEM_CONTAINER.getGroupId() == widgetGroup
|
||||||
|
|| WidgetInfo.LOOTING_BAG_CONTAINER.getGroupId() == widgetGroup
|
||||||
|
|| WidgetID.SEED_VAULT_INVENTORY_GROUP_ID == widgetGroup
|
||||||
|
|| WidgetID.SEED_BOX_GROUP_ID == widgetGroup)
|
||||||
{
|
{
|
||||||
Widget[] children = widget.getDynamicChildren();
|
Widget[] children = widget.getDynamicChildren();
|
||||||
if (actionParam < children.length)
|
if (actionParam < children.length)
|
||||||
|
|||||||
@@ -94,6 +94,8 @@ enum FixedPriceItem
|
|||||||
ROGUE_GLOVES(ItemID.ROGUE_GLOVES, 650),
|
ROGUE_GLOVES(ItemID.ROGUE_GLOVES, 650),
|
||||||
ROGUE_BOOTS(ItemID.ROGUE_BOOTS, 650),
|
ROGUE_BOOTS(ItemID.ROGUE_BOOTS, 650),
|
||||||
|
|
||||||
|
SALVE_AMULET_EI(ItemID.SALVE_AMULETEI, 209900),
|
||||||
|
|
||||||
RING_OF_WEALTH_1(ItemID.RING_OF_WEALTH_1, 500, ItemID.RING_OF_WEALTH),
|
RING_OF_WEALTH_1(ItemID.RING_OF_WEALTH_1, 500, ItemID.RING_OF_WEALTH),
|
||||||
RING_OF_WEALTH_2(ItemID.RING_OF_WEALTH_2, 1000, ItemID.RING_OF_WEALTH),
|
RING_OF_WEALTH_2(ItemID.RING_OF_WEALTH_2, 1000, ItemID.RING_OF_WEALTH),
|
||||||
RING_OF_WEALTH_3(ItemID.RING_OF_WEALTH_3, 1500, ItemID.RING_OF_WEALTH),
|
RING_OF_WEALTH_3(ItemID.RING_OF_WEALTH_3, 1500, ItemID.RING_OF_WEALTH),
|
||||||
|
|||||||
@@ -159,6 +159,9 @@ public class ItemsKeptOnDeathPluginTest
|
|||||||
final Item brace = mItem(ItemID.COMBAT_BRACELET1, 1, "Combat bracelet(1)", true, 0);
|
final Item brace = mItem(ItemID.COMBAT_BRACELET1, 1, "Combat bracelet(1)", true, 0);
|
||||||
final int braceletOffset = FixedPriceItem.COMBAT_BRACELET1.getOffset();
|
final int braceletOffset = FixedPriceItem.COMBAT_BRACELET1.getOffset();
|
||||||
assertEquals(13500 + braceletOffset, plugin.getDeathPrice(brace));
|
assertEquals(13500 + braceletOffset, plugin.getDeathPrice(brace));
|
||||||
|
|
||||||
|
final Item amulet = mItem(ItemID.SALVE_AMULETEI, 1, "Salve Amulet(ei)", false, 300);
|
||||||
|
assertEquals(210200, plugin.getDeathPrice(amulet));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|||||||
Reference in New Issue
Block a user