Add missing sanfew serums to the prayer dose indicator. (#7131)
This commit is contained in:
@@ -64,9 +64,7 @@ class PrayerDoseOverlay extends Overlay
|
||||
@Setter(AccessLevel.PACKAGE)
|
||||
private int prayerBonus;
|
||||
@Setter(AccessLevel.PACKAGE)
|
||||
private boolean hasPrayerPotion;
|
||||
@Setter(AccessLevel.PACKAGE)
|
||||
private boolean hasRestorePotion;
|
||||
private boolean hasPrayerRestore;
|
||||
@Setter(AccessLevel.PACKAGE)
|
||||
private boolean hasHolyWrench;
|
||||
|
||||
@@ -120,7 +118,7 @@ class PrayerDoseOverlay extends Overlay
|
||||
tooltipManager.add(new Tooltip(tooltip));
|
||||
}
|
||||
|
||||
if (!config.showPrayerDoseIndicator() || (!hasPrayerPotion && !hasRestorePotion))
|
||||
if (!config.showPrayerDoseIndicator() || !hasPrayerRestore)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -134,8 +134,7 @@ public class PrayerPlugin extends Plugin
|
||||
if (container == inventory || container == equipment)
|
||||
{
|
||||
doseOverlay.setHasHolyWrench(false);
|
||||
doseOverlay.setHasPrayerPotion(false);
|
||||
doseOverlay.setHasRestorePotion(false);
|
||||
doseOverlay.setHasPrayerRestore(false);
|
||||
|
||||
if (inventory != null)
|
||||
{
|
||||
@@ -226,14 +225,13 @@ public class PrayerPlugin extends Plugin
|
||||
switch (type)
|
||||
{
|
||||
case PRAYERPOT:
|
||||
doseOverlay.setHasPrayerPotion(true);
|
||||
case RESTOREPOT:
|
||||
case SANFEWPOT:
|
||||
doseOverlay.setHasPrayerRestore(true);
|
||||
break;
|
||||
case HOLYWRENCH:
|
||||
doseOverlay.setHasHolyWrench(true);
|
||||
break;
|
||||
case RESTOREPOT:
|
||||
doseOverlay.setHasRestorePotion(true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@ enum PrayerRestoreType
|
||||
{
|
||||
RESTOREPOT(ItemID.SUPER_RESTORE4, ItemID.SUPER_RESTORE3, ItemID.SUPER_RESTORE2, ItemID.SUPER_RESTORE1),
|
||||
PRAYERPOT(ItemID.PRAYER_POTION4, ItemID.PRAYER_POTION3, ItemID.PRAYER_POTION2, ItemID.PRAYER_POTION1),
|
||||
SANFEWPOT(ItemID.SANFEW_SERUM4, ItemID.SANFEW_SERUM3, ItemID.SANFEW_SERUM2, ItemID.SANFEW_SERUM1),
|
||||
HOLYWRENCH(ItemID.PRAYER_CAPE, ItemID.PRAYER_CAPET, ItemID.PRAYER_CAPE_10643, ItemID.MAX_CAPE, ItemID.MAX_CAPE_13282,
|
||||
ItemID.MAX_CAPE_13342, ItemID.HOLY_WRENCH, ItemID.RING_OF_THE_GODS_I);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user