Class SustainPlan.Builder
java.lang.Object
privbot.mechanics.SustainPlan.Builder
-
Method Summary
Modifier and TypeMethodDescriptionboost(net.runelite.api.Skill skill, BoostDosePolicy policy, String... doseNames) Keep a stat boost up.brewBelowPct(int pct) Drink a brew when HP is below this percent of max HP (0 turns it off).Brews in preference order; each must carry the "Drink" action.build()comboFoods(String... names) Foods eaten in the same tick after a food, for a combo eat; each must carry "Eat".eatBelowPct(int pct) Eat when HP is below this percent of max HP (0 turns eating off).Foods in preference order; each must carry the "Eat" action.restoreBelowPoints(int points) Drink a restore when prayer points are below this many (0 turns it off).Restores in preference order; each must carry the "Drink" action.
-
Method Details
-
eatBelowPct
Eat when HP is below this percent of max HP (0 turns eating off). -
foods
Foods in preference order; each must carry the "Eat" action. -
comboFoods
Foods eaten in the same tick after a food, for a combo eat; each must carry "Eat". A combo food that is carried is eaten together with every Eat, not only when HP is lowest. Leave this empty to opt out. -
brewBelowPct
Drink a brew when HP is below this percent of max HP (0 turns it off). -
brews
Brews in preference order; each must carry the "Drink" action. -
restoreBelowPoints
Drink a restore when prayer points are below this many (0 turns it off). -
restores
Restores in preference order; each must carry the "Drink" action. -
boost
public SustainPlan.Builder boost(net.runelite.api.Skill skill, BoostDosePolicy policy, String... doseNames) Keep a stat boost up. Boosts are tried in the order they were added; one skill has one boost.- Parameters:
skill- the skill whose boost is read from the boost mappolicy- decides when a dose is duedoseNames- dose item names in preference order; each must carry "Drink"
-
build
- Returns:
- the plan
-