Add God Wars Altar Timer

This commit is contained in:
Toocanzs
2018-03-15 17:20:30 -04:00
committed by Adam
parent 6f1853575d
commit 4893e11740
4 changed files with 18 additions and 1 deletions

View File

@@ -65,7 +65,8 @@ public enum GameTimer
EXSUPERANTIFIRE("exsuperantifire", "Extended Super AntiFire", 6, ChronoUnit.MINUTES),
SANFEW("sanfew", "Sanfew serum", 6, 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
private final String imageResource;

View File

@@ -214,4 +214,14 @@ public interface TimersConfig extends Config
{
return true;
}
@ConfigItem(
keyName = "showGodWarsAltar",
name = "God wars altar timer",
description = "Configures whether god wars altar timer is displayed"
)
default boolean showGodWarsAltar()
{
return true;
}
}

View File

@@ -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.EXSUPERANTIFIRE;
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.MAGICIMBUE;
import static net.runelite.client.plugins.timers.GameTimer.OVERLOAD;
@@ -269,6 +270,11 @@ public class TimersPlugin extends Plugin
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."))
{
createGameTimer(EXSUPERANTIFIRE);

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B