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

Commit

Permalink
Update package version and add PrimalRendDistance config
Browse files Browse the repository at this point in the history
Updated RebornRotations.csproj to change the version of the
RotationSolverReborn.Basic package from 7.0.5.63 to 7.0.5.65.

Added a new configuration property PrimalRendDistance in
WAR_Default.cs, allowing the maximum distance for using the
Primal Rend ability to be set between 1 and 20 yalms.

Modified the logic for using the Primal Rend ability to utilize
the new PrimalRendDistance property instead of a hardcoded
value of 2 yalms.
  • Loading branch information
LTS-FFXIV committed Sep 13, 2024
1 parent c3dda1f commit 5092a30
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion BasicRotations/RebornRotations.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<Compile Include="Duty\EmanationDefault" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="RotationSolverReborn.Basic" Version="7.0.5.63" />
<PackageReference Include="RotationSolverReborn.Basic" Version="7.0.5.65" />
</ItemGroup>
<ItemGroup>
<Reference Include="Dalamud">
Expand Down
6 changes: 5 additions & 1 deletion BasicRotations/Tank/WAR_Default.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ public sealed class WAR_Default : WarriorRotation
[RotationConfig(CombatType.PvE, Name = "Use Bloodwhetting/Raw intuition on single enemies")]
public bool SoloIntuition { get; set; } = false;

[Range(1, 20, ConfigUnitType.Yalms)]
[RotationConfig(CombatType.PvE, Name = "Max distance you can be from the boss for Primal Rend use (Danger, setting too high will get you killed)")]
public float PrimalRendDistance { get; set; } = 2;

[Range(0, 1, ConfigUnitType.Percent)]
[RotationConfig(CombatType.PvE, Name = "Nascent Flash Heal Threshold")]
public float FlashHeal { get; set; } = 0.6f;
Expand Down Expand Up @@ -147,7 +151,7 @@ protected override bool GeneralGCD(out IAction? act)
{
if (!IsMoving && PrimalRendPvE.CanUse(out act, skipAoeCheck: true))
{
if (PrimalRendPvE.Target.Target?.DistanceToPlayer() < 2) return true;
if (PrimalRendPvE.Target.Target?.DistanceToPlayer() < PrimalRendDistance) return true;
}
if (PrimalRuinationPvE.CanUse(out act)) return true;
}
Expand Down

0 comments on commit 5092a30

Please sign in to comment.