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

Commit

Permalink
fix: add property for rdm.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Oct 26, 2023
1 parent 01dab8c commit 264e59b
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion RotationSolver.Basic/Configuration/OtherConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ private static void SavePath<T>(T value, string path)
{
try
{
File.WriteAllTextAsync(path,
File.WriteAllText(path,
JsonConvert.SerializeObject(value, Formatting.Indented, new JsonSerializerSettings()
{
TypeNameHandling = TypeNameHandling.None,
Expand Down
2 changes: 1 addition & 1 deletion RotationSolver.Basic/Helpers/ObjectHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ public static unsafe bool CanSee(this GameObject b)
var tarPt = b.Position + Vector3.UnitY * b.Struct()->Height;
var direction = tarPt - point;

int* unknown = stackalloc int[] { 0x4000, 0, 0x4000, 0 };
int* unknown = stackalloc int[] { 0x2000, 0, 0x2000, 0 };

RaycastHit hit = default;

Expand Down
5 changes: 5 additions & 0 deletions RotationSolver.Basic/Rotations/Basic/RDM_Base.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ public abstract class RDM_Base : CustomRotation
///
/// </summary>
public static byte ManaStacks => JobGauge.ManaStacks;

/// <summary>
/// Is <see cref="WhiteMana"/> larger than <see cref="BlackMana"/>
/// </summary>
public static bool IsWhiteManaLargerThanBlackMana => WhiteMana > BlackMana;
#endregion

#region Attack Single
Expand Down
1 change: 0 additions & 1 deletion RotationSolver/Localization/LocalizationManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ public LocalizationManager()
#if DEBUG
ExportLocalization();
#endif

}

private async void SetLanguage(string lang)
Expand Down
1 change: 1 addition & 0 deletions RotationSolver/Localization/Strings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,7 @@ internal class Strings
{ nameof(RDM_Base.WhiteMana), "White Mana"},
{ nameof(RDM_Base.BlackMana), "Black Mana"},
{ nameof(RDM_Base.ManaStacks), "Mana Stacks"},
{ nameof(RDM_Base.IsWhiteManaLargerThanBlackMana), "Is White Mana Larger Than Black Mana"},
#endregion

#region RPR
Expand Down
1 change: 0 additions & 1 deletion RotationSolver/UI/RotationConfigWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
using RotationSolver.UI.SearchableConfigs;
using RotationSolver.UI.SearchableSettings;
using RotationSolver.Updaters;
using System.Collections.Generic;
using System.Diagnostics;
using GAction = Lumina.Excel.GeneratedSheets.Action;

Expand Down

0 comments on commit 264e59b

Please sign in to comment.