iutils: add deposit box handling, null check to handleLevelUp(), add withPosition to object streams, add missing runes to RuneElement

rooftopagility: add summer pie support
This commit is contained in:
illumineawake 2021-07-07 15:29:54 +10:00
parent e97988218a
commit 7d4445f183
10 changed files with 20 additions and 8 deletions

View File

@ -23,7 +23,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
version = "6.1.4"
version = "6.1.5"
project.extra["PluginName"] = "iRooftop Agility"
project.extra["PluginDescription"] = "Illumine automated rooftop agility plugin"

View File

@ -344,6 +344,20 @@ public interface iRooftopAgilityConfig extends Config {
return false;
}
@ConfigItem(
keyName = "pieLevel",
name = "Min boost level",
description = "A Summer Pie will be used whenever your Agility drops below this level",
position = 26,
title = "agilityTitle",
hidden = true,
unhide = "boostWithPie",
unhideValue = "true"
)
default int pieLevel() {
return 80;
}
@ConfigItem(
keyName = "startButton",
name = "Start/Stop",

View File

@ -241,7 +241,7 @@ public class iRooftopAgilityPlugin extends Plugin {
private boolean shouldEatSummerPie() {
return config.boostWithPie() &&
(client.getBoostedSkillLevel(Skill.AGILITY) == client.getRealSkillLevel(Skill.AGILITY)) &&
(client.getBoostedSkillLevel(Skill.AGILITY) < config.pieLevel()) &&
inventory.containsItem(SUMMER_PIE_IDS);
}

View File

@ -23,7 +23,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
version = "4.2.6"
version = "4.2.7"
project.extra["PluginName"] = "iUtils"
project.extra["PluginDescription"] = "Illumine - Utils required for plugins to function with added automation"

View File

@ -5,14 +5,10 @@
*/
package net.runelite.client.plugins.iutils.api;
import com.google.common.collect.ImmutableMap;
import lombok.AllArgsConstructor;
import lombok.Getter;
import net.runelite.api.widgets.WidgetInfo;
import javax.annotation.Nullable;
import java.util.Map;
@Getter
@AllArgsConstructor
public enum Spells {

View File

@ -110,4 +110,6 @@ public class InventoryItemStream extends RandomizedStreamAdapter<InventoryItem,
public boolean full() {
return size() == 28;
}
public int emptySlots() { return 28 - size(); }
}

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.