fix(gauges): MNK chakra + nadi, BLM Enochian flags

This commit is contained in:
goaaats 2021-12-09 18:41:40 +01:00
parent 61f07cc330
commit 56d72b44b3
No known key found for this signature in database
GPG key ID: F18F057873895461
2 changed files with 24 additions and 6 deletions

View file

@ -1,4 +1,5 @@
using System;
using FFXIVClientStructs.FFXIV.Client.Game.Gauge;
namespace Dalamud.Game.ClientState.JobGauge.Types
{
@ -47,21 +48,32 @@ namespace Dalamud.Game.ClientState.JobGauge.Types
public byte AstralFireStacks => (byte)(this.InAstralFire ? this.Struct->ElementStance : 0);
/// <summary>
/// Gets a value indicating whether if the player is in Umbral Ice.
/// Gets a value indicating whether or not the player is in Umbral Ice.
/// </summary>
/// <returns><c>true</c> or <c>false</c>.</returns>
public bool InUmbralIce => this.Struct->ElementStance < 0;
/// <summary>
/// Gets a value indicating whether if the player is in Astral fire.
/// Gets a value indicating whether or not the player is in Astral fire.
/// </summary>
/// <returns><c>true</c> or <c>false</c>.</returns>
public bool InAstralFire => this.Struct->ElementStance > 0;
/// <summary>
/// Gets a value indicating whether if Enochian is active.
/// Gets a value indicating whether or not Enochian is active.
/// </summary>
/// <returns><c>true</c> or <c>false</c>.</returns>
public bool IsEnochianActive => this.Struct->Enochian != 0;
public bool IsEnochianActive => this.Struct->EnochianActive;
/// <summary>
/// Gets a value indicating whether or not Paradox is active.
/// </summary>
/// <returns><c>true</c> or <c>false</c>.</returns>
public bool IsParadoxActive => this.Struct->ParadoxActive;
/// <summary>
/// Gets a value indicating which kind of Enochian is active.
/// </summary>
public EnochianFlags EnochianFlags => this.Struct->EnochianFlags;
}
}

View file

@ -1,4 +1,5 @@
using System;
using FFXIVClientStructs.FFXIV.Client.Game.Gauge;
namespace Dalamud.Game.ClientState.JobGauge.Types
{
@ -17,8 +18,13 @@ namespace Dalamud.Game.ClientState.JobGauge.Types
}
/// <summary>
/// Gets the number of Chakra available.
/// Gets the number of Chakra available, per Chakra type.
/// </summary>
public byte Chakra => this.Struct->Chakra;
public ChakraType[] Chakra => this.Struct->CurrentChakra;
/// <summary>
/// Gets the kind of Nadi available.
/// </summary>
public NadiFlags Nadi => this.Struct->Nadi;
}
}