Add Dragonfire Shield timer to timers plugin (#9234)
This commit is contained in:
@@ -155,6 +155,7 @@ public final class AnimationID
|
|||||||
public static final int SAND_COLLECTION = 895;
|
public static final int SAND_COLLECTION = 895;
|
||||||
public static final int PISCARILIUS_CRANE_REPAIR = 7199;
|
public static final int PISCARILIUS_CRANE_REPAIR = 7199;
|
||||||
public static final int HOME_MAKE_TABLET = 4067;
|
public static final int HOME_MAKE_TABLET = 4067;
|
||||||
|
public static final int DRAGONFIRE_SHIELD_SPECIAL = 6696;
|
||||||
|
|
||||||
// NPC animations
|
// NPC animations
|
||||||
public static final int TZTOK_JAD_MAGIC_ATTACK = 2656;
|
public static final int TZTOK_JAD_MAGIC_ATTACK = 2656;
|
||||||
|
|||||||
@@ -78,7 +78,8 @@ enum GameTimer
|
|||||||
STAFF_OF_THE_DEAD(ItemID.STAFF_OF_THE_DEAD, GameTimerImageType.ITEM, "Staff of the Dead", 1, ChronoUnit.MINUTES),
|
STAFF_OF_THE_DEAD(ItemID.STAFF_OF_THE_DEAD, GameTimerImageType.ITEM, "Staff of the Dead", 1, ChronoUnit.MINUTES),
|
||||||
ABYSSAL_SIRE_STUN(ItemID.ABYSSAL_ORPHAN, GameTimerImageType.ITEM, "Abyssal Sire Stun", 30, ChronoUnit.SECONDS, true),
|
ABYSSAL_SIRE_STUN(ItemID.ABYSSAL_ORPHAN, GameTimerImageType.ITEM, "Abyssal Sire Stun", 30, ChronoUnit.SECONDS, true),
|
||||||
HOME_TELEPORT(SpriteID.SPELL_LUMBRIDGE_HOME_TELEPORT, GameTimerImageType.SPRITE, "Home Teleport", 30, ChronoUnit.MINUTES),
|
HOME_TELEPORT(SpriteID.SPELL_LUMBRIDGE_HOME_TELEPORT, GameTimerImageType.SPRITE, "Home Teleport", 30, ChronoUnit.MINUTES),
|
||||||
MINIGAME_TELEPORT(SpriteID.TAB_QUESTS_RED_MINIGAMES, GameTimerImageType.SPRITE, "Minigame Teleport", 20, ChronoUnit.MINUTES);
|
MINIGAME_TELEPORT(SpriteID.TAB_QUESTS_RED_MINIGAMES, GameTimerImageType.SPRITE, "Minigame Teleport", 20, ChronoUnit.MINUTES),
|
||||||
|
DRAGON_FIRE_SHIELD(ItemID.DRAGONFIRE_SHIELD_11284, GameTimerImageType.ITEM, "Dragonfire Shield Special", 2, ChronoUnit.MINUTES);
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
private final Duration duration;
|
private final Duration duration;
|
||||||
|
|||||||
@@ -200,4 +200,14 @@ public interface TimersConfig extends Config
|
|||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ConfigItem(
|
||||||
|
keyName = "showDfsSpecial",
|
||||||
|
name = "Dragonfire Shield special timer",
|
||||||
|
description = "Configures whether the special attack cooldown timer for the Dragonfire Shield is displayed"
|
||||||
|
)
|
||||||
|
default boolean showDFSSpecial()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -706,6 +706,11 @@ public class TimersPlugin extends Plugin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (config.showDFSSpecial() && lastAnimation == AnimationID.DRAGONFIRE_SHIELD_SPECIAL)
|
||||||
|
{
|
||||||
|
createGameTimer(DRAGON_FIRE_SHIELD);
|
||||||
|
}
|
||||||
|
|
||||||
lastAnimation = client.getLocalPlayer().getAnimation();
|
lastAnimation = client.getLocalPlayer().getAnimation();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user