Add God Wars Altar Timer
This commit is contained in:
@@ -65,7 +65,8 @@ public enum GameTimer
|
|||||||
EXSUPERANTIFIRE("exsuperantifire", "Extended Super AntiFire", 6, ChronoUnit.MINUTES),
|
EXSUPERANTIFIRE("exsuperantifire", "Extended Super AntiFire", 6, ChronoUnit.MINUTES),
|
||||||
SANFEW("sanfew", "Sanfew serum", 6, ChronoUnit.MINUTES),
|
SANFEW("sanfew", "Sanfew serum", 6, ChronoUnit.MINUTES),
|
||||||
OVERLOAD_RAID("overloadraid", "Overload", 5, ChronoUnit.MINUTES),
|
OVERLOAD_RAID("overloadraid", "Overload", 5, ChronoUnit.MINUTES),
|
||||||
PRAYER_ENHANCE("prayerenhance", "Prayer enhance", 290, ChronoUnit.SECONDS);
|
PRAYER_ENHANCE("prayerenhance", "Prayer enhance", 290, ChronoUnit.SECONDS),
|
||||||
|
GOD_WARS_ALTAR("altar", "God wars altar", 10, ChronoUnit.MINUTES);
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
private final String imageResource;
|
private final String imageResource;
|
||||||
|
|||||||
@@ -214,4 +214,14 @@ public interface TimersConfig extends Config
|
|||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ConfigItem(
|
||||||
|
keyName = "showGodWarsAltar",
|
||||||
|
name = "God wars altar timer",
|
||||||
|
description = "Configures whether god wars altar timer is displayed"
|
||||||
|
)
|
||||||
|
default boolean showGodWarsAltar()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ import static net.runelite.client.plugins.timers.GameTimer.CANNON;
|
|||||||
import static net.runelite.client.plugins.timers.GameTimer.EXANTIFIRE;
|
import static net.runelite.client.plugins.timers.GameTimer.EXANTIFIRE;
|
||||||
import static net.runelite.client.plugins.timers.GameTimer.EXSUPERANTIFIRE;
|
import static net.runelite.client.plugins.timers.GameTimer.EXSUPERANTIFIRE;
|
||||||
import static net.runelite.client.plugins.timers.GameTimer.FULLTB;
|
import static net.runelite.client.plugins.timers.GameTimer.FULLTB;
|
||||||
|
import static net.runelite.client.plugins.timers.GameTimer.GOD_WARS_ALTAR;
|
||||||
import static net.runelite.client.plugins.timers.GameTimer.HALFTB;
|
import static net.runelite.client.plugins.timers.GameTimer.HALFTB;
|
||||||
import static net.runelite.client.plugins.timers.GameTimer.MAGICIMBUE;
|
import static net.runelite.client.plugins.timers.GameTimer.MAGICIMBUE;
|
||||||
import static net.runelite.client.plugins.timers.GameTimer.OVERLOAD;
|
import static net.runelite.client.plugins.timers.GameTimer.OVERLOAD;
|
||||||
@@ -269,6 +270,11 @@ public class TimersPlugin extends Plugin
|
|||||||
createGameTimer(EXANTIFIRE);
|
createGameTimer(EXANTIFIRE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (config.showGodWarsAltar() && event.getMessage().equalsIgnoreCase("you recharge your prayer."))//Normal altars are "You recharge your Prayer points." while gwd is "You recharge your Prayer."
|
||||||
|
{
|
||||||
|
createGameTimer(GOD_WARS_ALTAR);
|
||||||
|
}
|
||||||
|
|
||||||
if (config.showExSuperAntifire() && event.getMessage().equals("You drink some of your extended super antifire potion."))
|
if (config.showExSuperAntifire() && event.getMessage().equals("You drink some of your extended super antifire potion."))
|
||||||
{
|
{
|
||||||
createGameTimer(EXSUPERANTIFIRE);
|
createGameTimer(EXSUPERANTIFIRE);
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 873 B |
Reference in New Issue
Block a user