Skip to content
This repository has been archived by the owner on Nov 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #223 from FFXIV-CombatReborn/dead-code-removal
Browse files Browse the repository at this point in the history
Add config options, update methods, and clean up code
  • Loading branch information
LTS-FFXIV authored Sep 13, 2024
2 parents 5c66c06 + 5a3cb59 commit 1993e15
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 39 deletions.
1 change: 0 additions & 1 deletion BasicRotations/Healer/SCH_Default.cs
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,5 @@ protected override bool GeneralGCD(out IAction? act)
#region Extra Methods
public override bool CanHealSingleSpell => base.CanHealSingleSpell && (GCDHeal || PartyMembers.GetJobCategory(JobRole.Healer).Count() < 2);
public override bool CanHealAreaSpell => base.CanHealAreaSpell && (GCDHeal || PartyMembers.GetJobCategory(JobRole.Healer).Count() < 2);

#endregion
}
4 changes: 4 additions & 0 deletions BasicRotations/Magical/ICWA_PCT_BETA.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ namespace DefaultRotations.Magical;
[Api(3)]
public sealed class IcWaPctBeta : PictomancerRotation
{
#region Config Options
public override MedicineType MedicineType => MedicineType.Intelligence;
public static IBaseAction RainbowPrePull { get; } = new BaseAction((ActionID)34688);
[RotationConfig(CombatType.PvE, Name = "Use HolyInWhite or CometInBlack while moving")]
Expand All @@ -28,6 +29,9 @@ public enum MotifSwift : byte
[Description("AllMotif")] AllMotif,
[Description("NoMotif(ManualSwifcast")] NoMotif
}

#endregion

#region Countdown logic
// Defines logic for actions to take during the countdown before combat starts.
protected override IAction? CountDownAction(float remainTime)
Expand Down
3 changes: 3 additions & 0 deletions BasicRotations/Magical/PCT_Default.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
[Api(3)]
public sealed class PCT_Default : PictomancerRotation
{
#region Config Options
[RotationConfig(CombatType.PvE, Name = "Use HolyInWhite or CometInBlack while moving")]
public bool HolyCometMoving { get; set; } = true;

Expand All @@ -21,6 +22,8 @@ public sealed class PCT_Default : PictomancerRotation
[RotationConfig(CombatType.PvE, Name = "Which Motif to use swiftcast on")]
public CanvasFlags MotifSwiftCast { get; set; } = CanvasFlags.Weapon;

#endregion

#region Countdown logic
// Defines logic for actions to take during the countdown before combat starts.
protected override IAction? CountDownAction(float remainTime)
Expand Down
22 changes: 2 additions & 20 deletions BasicRotations/Magical/SMN_Default.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ protected override bool AttackAbility(IAction nextGCD, out IAction? act)

return base.AttackAbility(nextGCD, out act);
}
#endregion

protected override bool EmergencyAbility(IAction nextGCD, out IAction? act)
{
Expand All @@ -154,6 +153,8 @@ protected override bool EmergencyAbility(IAction nextGCD, out IAction? act)

return base.EmergencyAbility(nextGCD, out act);
}

#endregion

#region GCD Logic
protected override bool GeneralGCD(out IAction? act)
Expand Down Expand Up @@ -225,23 +226,4 @@ public bool DoesAnyPlayerNeedHeal()
return PartyMembersAverHP < 0.8f;
}
#endregion


// public override void DisplayStatus()
// {
// bool isTargetBoss = HostileTarget?.IsBossFromTTK() ?? false;
// bool isTargetDying = HostileTarget?.IsDying() ?? false;
// bool inSolarUnique = !InBahamut && !InPhoenix && InSolarBahamut;
//
// IAction act;
// var condition1 = $"inSolarUnique: {inSolarUnique}, Not Enough SearingLightPvE Level: {!SearingLightPvE.EnoughLevel}, isTargetBoss: {isTargetBoss}, isTargetDying: {isTargetDying}, PainflarePvE Can Use: {PainflarePvE.CanUse(out act)}";
// var condition2 = $"inSolarUnique: {inSolarUnique}, Not Enough SearingLightPvE Level: {!SearingLightPvE.EnoughLevel}, isTargetBoss: {isTargetBoss}, isTargetDying: {isTargetDying}, FesterPvE Can Use: {FesterPvE.CanUse(out act)}, NecrotizePvE Can Use: {NecrotizePvE.CanUse(out act)}";
//
// var conditionG = (inSolarUnique && Player.HasStatus(false, StatusID.SearingLight) || !SearingLightPvE.EnoughLevel || isTargetBoss && isTargetDying) && EnergyDrainPvE.IsInCooldown && (FesterPvE.CanUse(out act) || NecrotizePvE.CanUse(out act));
// ImGui.Text(condition1);
// ImGui.Text(condition2);
// ImGui.Text(conditionG.ToString());
// base.DisplayStatus();
// }

}
4 changes: 0 additions & 4 deletions BasicRotations/Melee/MNK_Default.cs
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,4 @@ protected override bool GeneralGCD(out IAction? act)
return base.GeneralGCD(out act);
}
#endregion

#region Extra Methods

#endregion
}
9 changes: 0 additions & 9 deletions BasicRotations/Melee/NIN_Default.cs
Original file line number Diff line number Diff line change
Expand Up @@ -428,14 +428,5 @@ protected override bool GeneralGCD(out IAction? act)
#region Extra Methods
// Holds the next ninjutsu action to perform.
private IBaseAction? _ninActionAim = null;

// Determines if Trick Attack is in its effective period.
private bool InTrickAttack => (KunaisBanePvE.Cooldown.IsCoolingDown || TrickAttackPvE.Cooldown.IsCoolingDown) && (!KunaisBanePvE.Cooldown.ElapsedAfter(17) || !TrickAttackPvE.Cooldown.ElapsedAfter(17));

// Determines if Mug is in its effective period.
private bool InMug => MugPvE.Cooldown.IsCoolingDown && !MugPvE.Cooldown.ElapsedAfter(19);

// Checks if no ninjutsu action is currently selected or if the Rabbit Medium has been invoked.
private static bool NoNinjutsu => AdjustId(ActionID.NinjutsuPvE) is ActionID.NinjutsuPvE or ActionID.RabbitMediumPvE;
#endregion
}
4 changes: 0 additions & 4 deletions BasicRotations/Melee/SAM_Default.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,4 @@ protected override bool GeneralGCD(out IAction? act)
}

#endregion

#region Extra Methods
private static bool HaveMeikyoShisui => Player.HasStatus(true, StatusID.MeikyoShisui);
#endregion
}
2 changes: 1 addition & 1 deletion BasicRotations/Ranged/BRD_Default.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public sealed class BRD_Default : BardRotation
private float ARMYRemainTime => 45 - ARMYTime;

private static bool InBurstStatus => (Player.Level > 50 && !Player.WillStatusEnd(0, true, StatusID.RagingStrikes))
|| (Player.Level >= 50 && Player.Level < 90 && !Player.WillStatusEnd(0, true, StatusID.RagingStrikes) && !Player.WillStatusEnd(0, true, StatusID.BattleVoice))
|| (Player.Level >= 50 && Player.Level < 90 && !Player.WillStatusEnd(0, true, StatusID.RagingStrikes) && !Player.WillStatusEnd(0, true, StatusID.BattleVoice))
|| (MinstrelsCodaTrait.EnoughLevel && !Player.WillStatusEnd(0, true, StatusID.RagingStrikes) && !Player.WillStatusEnd(0, true, StatusID.RadiantFinale) && !Player.WillStatusEnd(0, true, StatusID.BattleVoice));

#endregion
Expand Down

0 comments on commit 1993e15

Please sign in to comment.