Skip to content

Commit

Permalink
Various base fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
LTS-FFXIV committed Sep 2, 2024
1 parent 1cb81af commit 8ef36e1
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 9 deletions.
56 changes: 49 additions & 7 deletions RotationSolver.Basic/Rotations/Basic/DarkKnightRotation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,42 @@ protected static bool DarkSideEndAfterGCD(uint gctCount = 0, float offset = 0)
/// <returns></returns>
protected static bool ShadowTimeEndAfterGCD(uint gctCount = 0, float offset = 0)
=> ShadowTimeEndAfter(GCDTime(gctCount, offset));

/// <summary>
/// Holds the remaining amount of BloodWeapon stacks
/// </summary>
public static byte BloodWeaponStacks
{
get
{
byte stacks = Player.StatusStack(true, StatusID.BloodWeapon);
return stacks == byte.MaxValue ? (byte)3 : stacks;
}
}

/// <summary>
/// Holds the remaining amount of Delirium stacks
/// </summary>
public static byte DeliriumStacks
{
get
{
byte stacks = Player.StatusStack(true, StatusID.Delirium_3836);
return stacks == byte.MaxValue ? (byte)3 : stacks;
}
}

/// <summary>
/// Holds the remaining amount of Delirium stacks
/// </summary>
public static byte LowDeliriumStacks
{
get
{
byte stacks = Player.StatusStack(true, StatusID.Delirium_1972);
return stacks == byte.MaxValue ? (byte)3 : stacks;
}
}
#endregion

static partial void ModifyHardSlashPvE(ref ActionSetting setting)
Expand Down Expand Up @@ -190,12 +226,12 @@ static partial void ModifyCarveAndSpitPvE(ref ActionSetting setting)

static partial void ModifyBloodspillerPvE(ref ActionSetting setting)
{
setting.ActionCheck = () => Blood >= 50 || !Player.WillStatusEnd(0, true, StatusID.Delirium_1972);
setting.ActionCheck = () => Blood >= 50 || DeliriumStacks > 0 || LowDeliriumStacks > 0;
}

static partial void ModifyQuietusPvE(ref ActionSetting setting)
{
setting.ActionCheck = () => Blood >= 50 || !Player.WillStatusEnd(0, true, StatusID.Delirium_1972);
setting.ActionCheck = () => Blood >= 50 || DeliriumStacks > 0 || LowDeliriumStacks > 0;
setting.CreateConfig = () => new ActionConfig()
{
AoeCount = 2,
Expand Down Expand Up @@ -285,19 +321,17 @@ static partial void ModifyShadowedVigilPvE(ref ActionSetting setting)

static partial void ModifyScarletDeliriumPvE(ref ActionSetting setting)
{
setting.StatusNeed = [StatusID.Delirium_3836];
setting.ActionCheck = () => DeliriumStacks == 3;
}

static partial void ModifyComeuppancePvE(ref ActionSetting setting)
{
setting.StatusNeed = [StatusID.Delirium_3836];
setting.ComboIds = [ActionID.ScarletDeliriumPvE];
setting.ActionCheck = () => DeliriumStacks == 2;
}

static partial void ModifyTorcleaverPvE(ref ActionSetting setting)
{
setting.StatusNeed = [StatusID.Delirium_3836];
setting.ComboIds = [ActionID.TorcleaverPvE];
setting.ActionCheck = () => DeliriumStacks == 1;
}

static partial void ModifyImpalementPvE(ref ActionSetting setting)
Expand Down Expand Up @@ -331,4 +365,12 @@ static partial void ModifyPlungePvP(ref ActionSetting setting)
{
setting.SpecialType = SpecialActionType.MovingForward;
}

/// <inheritdoc/>
public override void DisplayStatus()
{
ImGui.Text("BloodWeaponStacks: " + BloodWeaponStacks.ToString());
ImGui.Text("DeliriumStacks: " + DeliriumStacks.ToString());
ImGui.Text("LowDeliriumStacks: " + LowDeliriumStacks.ToString());
}
}
5 changes: 5 additions & 0 deletions RotationSolver.Basic/Rotations/Basic/NinjaRotation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ partial class NinjaRotation
/// Gets the current charges for Kazematoi.
/// </summary>
public static byte Kazematoi => (byte)JobGauge.Kazematoi;

/// <summary>
/// Is enough level for Jin
/// </summary>
public static bool HasJin = IncreaseAttackSpeedTrait.EnoughLevel;
#endregion

static partial void ModifySpinningEdgePvE(ref ActionSetting setting)
Expand Down
2 changes: 0 additions & 2 deletions RotationSolver.Basic/Rotations/Basic/SageRotation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ static partial void ModifyDiagnosisPvE(ref ActionSetting setting)
static partial void ModifyKardiaPvE(ref ActionSetting setting)
{
setting.TargetType = TargetType.Tank;
setting.StatusProvide = [StatusID.Kardia];
setting.TargetStatusProvide = [StatusID.Kardion];
setting.ActionCheck = () => !DataCenter.AllianceMembers.Any(m => m.HasStatus(true, StatusID.Kardion));
setting.CreateConfig = () => new ActionConfig()
{
Expand Down

0 comments on commit 8ef36e1

Please sign in to comment.