This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2c485c9
commit 9c2aef2
Showing
9 changed files
with
232 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
namespace RotationSolver.Old.Melee; | ||
|
||
[RotationDesc(ActionID.RiddleofFire)] | ||
internal sealed class MNK_Old : MNK_Base | ||
{ | ||
public override string GameVersion => "6.0"; | ||
|
||
public override string RotationName => "Old"; | ||
|
||
protected override IRotationConfigSet CreateConfiguration() | ||
{ | ||
return base.CreateConfiguration().SetBool("AutoFormShift", true, "Auto use FormShift"); | ||
} | ||
|
||
private bool OpoOpoForm(out IAction act) | ||
{ | ||
if (ArmoftheDestroyer.CanUse(out act)) return true; | ||
if (DragonKick.CanUse(out act)) return true; | ||
if (Bootshine.CanUse(out act)) return true; | ||
return false; | ||
} | ||
|
||
private bool RaptorForm(out IAction act) | ||
{ | ||
if (FourpointFury.CanUse(out act)) return true; | ||
|
||
if (Player.WillStatusEndGCD(3, 0, true, StatusID.DisciplinedFist) && TwinSnakes.CanUse(out act)) return true; | ||
|
||
if (TrueStrike.CanUse(out act)) return true; | ||
return false; | ||
} | ||
|
||
private bool CoerlForm(out IAction act) | ||
{ | ||
if (Rockbreaker.CanUse(out act)) return true; | ||
if (Demolish.CanUse(out act)) return true; | ||
if (SnapPunch.CanUse(out act)) return true; | ||
return false; | ||
} | ||
|
||
private bool LunarNadi(out IAction act) | ||
{ | ||
if (OpoOpoForm(out act)) return true; | ||
return false; | ||
} | ||
|
||
private bool SolarNadi(out IAction act) | ||
{ | ||
if (!BeastChakras.Contains(BeastChakra.RAPTOR)) | ||
{ | ||
if (RaptorForm(out act)) return true; | ||
} | ||
else if (!BeastChakras.Contains(BeastChakra.OPOOPO)) | ||
{ | ||
if (OpoOpoForm(out act)) return true; | ||
} | ||
else | ||
{ | ||
if (CoerlForm(out act)) return true; | ||
} | ||
|
||
return false; | ||
} | ||
|
||
protected override bool GeneralGCD(out IAction act) | ||
{ | ||
//满了的话,放三个大招 | ||
if (!BeastChakras.Contains(BeastChakra.NONE)) | ||
{ | ||
if (HasSolar && HasLunar) | ||
{ | ||
if (PhantomRush.CanUse(out act, mustUse: true)) return true; | ||
if (TornadoKick.CanUse(out act, mustUse: true)) return true; | ||
} | ||
if (BeastChakras.Contains(BeastChakra.RAPTOR)) | ||
{ | ||
if (RisingPhoenix.CanUse(out act, mustUse: true)) return true; | ||
if (FlintStrike.CanUse(out act, mustUse: true)) return true; | ||
} | ||
else | ||
{ | ||
if (ElixirField.CanUse(out act, mustUse: true)) return true; | ||
} | ||
} | ||
//有震脚就阴阳 | ||
else if (Player.HasStatus(true, StatusID.PerfectBalance)) | ||
{ | ||
if (HasSolar && LunarNadi(out act)) return true; | ||
if (SolarNadi(out act)) return true; | ||
} | ||
|
||
if (Player.HasStatus(true, StatusID.CoerlForm)) | ||
{ | ||
if (CoerlForm(out act)) return true; | ||
} | ||
else if (Player.HasStatus(true, StatusID.RaptorForm)) | ||
{ | ||
if (RaptorForm(out act)) return true; | ||
} | ||
if (OpoOpoForm(out act)) return true; | ||
|
||
if (SpecialType == SpecialCommandType.MoveForward && MoveForwardAbility(1, out act)) return true; | ||
if (Chakra < 5 && Meditation.CanUse(out act)) return true; | ||
if (Configs.GetBool("AutoFormShift") && FormShift.CanUse(out act)) return true; | ||
|
||
return false; | ||
} | ||
|
||
protected override bool AttackAbility(byte abilitiesRemaining, out IAction act) | ||
{ | ||
if (InBurst) | ||
{ | ||
if (RiddleofFire.CanUse(out act)) return true; | ||
if (Brotherhood.CanUse(out act)) return true; | ||
} | ||
|
||
//震脚 | ||
if (BeastChakras.Contains(BeastChakra.NONE)) | ||
{ | ||
//有阳斗气 | ||
if (HasSolar) | ||
{ | ||
//两种Buff都在6s以上 | ||
var dis = Player.WillStatusEndGCD(3, 0, true, StatusID.DisciplinedFist); | ||
|
||
Demolish.CanUse(out _); | ||
var demo = Demolish.Target.WillStatusEndGCD(3, 0, true, StatusID.Demolish); | ||
|
||
if (!dis && (!demo || !PerfectBalance.IsCoolingDown)) | ||
{ | ||
if (PerfectBalance.CanUse(out act, emptyOrSkipCombo: true)) return true; | ||
} | ||
} | ||
else | ||
{ | ||
if (PerfectBalance.CanUse(out act, emptyOrSkipCombo: true)) return true; | ||
} | ||
} | ||
|
||
if (RiddleofWind.CanUse(out act)) return true; | ||
|
||
if (HowlingFist.CanUse(out act)) return true; | ||
if (SteelPeak.CanUse(out act)) return true; | ||
if (HowlingFist.CanUse(out act, mustUse: true)) return true; | ||
|
||
return false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net7.0-windows</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<PlatformTarget>x64</PlatformTarget> | ||
<DalamudLibPath>$(AppData)\XIVLauncher\addon\Hooks\dev\</DalamudLibPath> | ||
<Platforms>AnyCPU</Platforms> | ||
<Authors>ArchiTed</Authors> | ||
|
||
</PropertyGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\RotationSolver.Basic\RotationSolver.Basic.csproj" /> | ||
|
||
<Reference Include="Dalamud"> | ||
<HintPath>$(DalamudLibPath)Dalamud.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="ImGui.NET"> | ||
<HintPath>$(DalamudLibPath)ImGui.NET.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="ImGuiScene"> | ||
<HintPath>$(DalamudLibPath)ImGuiScene.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="Lumina"> | ||
<HintPath>$(DalamudLibPath)Lumina.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="Lumina.Excel"> | ||
<HintPath>$(DalamudLibPath)Lumina.Excel.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="FFXIVClientStructs"> | ||
<HintPath>$(DalamudLibPath)FFXIVClientStructs.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="Newtonsoft.Json"> | ||
<HintPath>$(DalamudLibPath)Newtonsoft.Json.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
|
||
<Using Include="Dalamud.Game.ClientState.JobGauge.Enums" /> | ||
<Using Include="RotationSolver.Actions.BaseAction" /> | ||
<Using Include="RotationSolver.Basic" /> | ||
<Using Include="RotationSolver.Basic.Actions" /> | ||
<Using Include="RotationSolver.Basic.Attributes" /> | ||
<Using Include="RotationSolver.Basic.Configuration.RotationConfig" /> | ||
<Using Include="RotationSolver.Basic.Data" /> | ||
<Using Include="RotationSolver.Basic.Helpers" /> | ||
<Using Include="RotationSolver.Basic.Rotations.Basic" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Folder Include="Healer\" /> | ||
<Folder Include="Magical\" /> | ||
<Folder Include="Tank\" /> | ||
<Folder Include="Ranged\" /> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters