Skip to content

Commit

Permalink
Merge pull request #472 from FFXIV-CombatReborn/GNB-fix
Browse files Browse the repository at this point in the history
Update GNB_Default, GunbreakerRotation, and dependencies
  • Loading branch information
LTS-FFXIV authored Dec 14, 2024
2 parents 2418910 + 6b5fc08 commit 9d06745
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions BasicRotations/Tank/GNB_Default.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace DefaultRotations.Tank;

[Rotation("Default", CombatType.PvE, GameVersion = "7.00")]
[Rotation("Default", CombatType.PvE, GameVersion = "7.11")]
[SourceCode(Path = "main/BasicRotations/Tank/GNB_Default.cs")]
[Api(4)]
public sealed class GNB_Default : GunbreakerRotation
Expand Down Expand Up @@ -103,7 +103,7 @@ protected override bool GeneralGCD(out IAction? act)

if (IsLastGCD(false, NobleBloodPvE) && LionHeartPvE.CanUse(out act, skipComboCheck: true)) return true;
if (IsLastGCD(false, ReignOfBeastsPvE) && NobleBloodPvE.CanUse(out act, skipComboCheck: true)) return true;
if (ReignOfBeastsPvE.CanUse(out act)) return true;
if (ReignOfBeastsPvE.CanUse(out act, skipAoeCheck: true)) return true;

if (Player.HasStatus(true, StatusID.NoMercy) && SonicBreakPvE.CanUse(out act)) return true;

Expand Down
2 changes: 1 addition & 1 deletion ECommons
8 changes: 7 additions & 1 deletion RotationSolver.Basic/Rotations/Basic/GunbreakerRotation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ partial class GunbreakerRotation

#region Job Gauge
/// <summary>
///
/// Gets the amount of ammo available.
/// </summary>
public static byte Ammo => JobGauge.Ammo;

Expand All @@ -32,12 +32,18 @@ partial class GunbreakerRotation
/// </summary>
public static byte MaxAmmo => CartridgeChargeIiTrait.EnoughLevel ? (byte)3 : (byte)2;

/// <summary>
/// Gets the max combo time of the Gnashing Fang combo.
/// </summary>
public static short MaxTimerDuration => JobGauge.MaxTimerDuration;

/// <inheritdoc/>
public override void DisplayStatus()
{
ImGui.Text("Ammo: " + Ammo.ToString());
ImGui.Text("AmmoComboStep: " + AmmoComboStep.ToString());
ImGui.Text("MaxAmmo: " + MaxAmmo.ToString());
ImGui.Text("MaxTimerDuration: " + MaxTimerDuration.ToString());
}
#endregion

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.11.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.12.0" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 9d06745

Please sign in to comment.