From 4383a5747dff64bb9a24d8622a869686dae15563 Mon Sep 17 00:00:00 2001 From: attick Date: Wed, 24 Jul 2024 00:17:02 -0400 Subject: [PATCH] Add SerpentCombo to VPRGauge (#1960) Co-authored-by: KazWolfe --- .../JobGauge/Enums/SerpentCombo.cs | 42 +++++++++++++++++++ .../ClientState/JobGauge/Types/VPRGauge.cs | 8 +++- 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 Dalamud/Game/ClientState/JobGauge/Enums/SerpentCombo.cs diff --git a/Dalamud/Game/ClientState/JobGauge/Enums/SerpentCombo.cs b/Dalamud/Game/ClientState/JobGauge/Enums/SerpentCombo.cs new file mode 100644 index 000000000..0fc50d87a --- /dev/null +++ b/Dalamud/Game/ClientState/JobGauge/Enums/SerpentCombo.cs @@ -0,0 +1,42 @@ +namespace Dalamud.Game.ClientState.JobGauge.Enums; + +/// +/// Enum representing the SerpentCombo actions for the VPR job gauge. +/// +public enum SerpentCombo : byte +{ + /// + /// No Serpent combo is active. + /// + NONE = 0, + + /// + /// Death Rattle action. + /// + DEATHRATTLE = 1, + + /// + /// Last Lash action. + /// + LASTLASH = 2, + + /// + /// First Legacy action. + /// + FIRSTLEGACY = 3, + + /// + /// Second Legacy action. + /// + SECONDLEGACY = 4, + + /// + /// Third Legacy action. + /// + THIRDLEGACY = 5, + + /// + /// Fourth Legacy action. + /// + FOURTHLEGACY = 6, +} diff --git a/Dalamud/Game/ClientState/JobGauge/Types/VPRGauge.cs b/Dalamud/Game/ClientState/JobGauge/Types/VPRGauge.cs index a889c3482..3c822c7d7 100644 --- a/Dalamud/Game/ClientState/JobGauge/Types/VPRGauge.cs +++ b/Dalamud/Game/ClientState/JobGauge/Types/VPRGauge.cs @@ -1,8 +1,9 @@ -using FFXIVClientStructs.FFXIV.Client.Game.Gauge; +using FFXIVClientStructs.FFXIV.Client.Game.Gauge; using Reloaded.Memory; using DreadCombo = Dalamud.Game.ClientState.JobGauge.Enums.DreadCombo; +using SerpentCombo = Dalamud.Game.ClientState.JobGauge.Enums.SerpentCombo; namespace Dalamud.Game.ClientState.JobGauge.Types; @@ -39,4 +40,9 @@ public unsafe class VPRGauge : JobGaugeBase /// Gets the last Weaponskill used in DreadWinder/Pit of Dread combo. /// public DreadCombo DreadCombo => (DreadCombo)Struct->DreadCombo; + + /// + /// Gets current ability for Serpent's Tail. + /// + public SerpentCombo SerpentCombo => (SerpentCombo)Struct->SerpentCombo; }