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

Commit

Permalink
fix: fix for moving check.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Jul 1, 2023
1 parent 41c059f commit da82cda
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 20 deletions.
3 changes: 2 additions & 1 deletion RotationSolver.Basic/DataCenter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ public static TargetingType TargetingType
}

public static bool IsMoving { get; internal set; }
public static float StopMovingRaw { get; internal set; }

internal static float StopMovingRaw { get; set; }

public static unsafe ushort FateId
{
Expand Down
2 changes: 1 addition & 1 deletion RotationSolver.Basic/Helpers/TargetFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ private static BattleChara RandomObject(IEnumerable<BattleChara> objs)
/// <param name="radius"></param>
/// <returns></returns>
public static IEnumerable<T> GetObjectInRadius<T>(this IEnumerable<T> objects, float radius) where T : GameObject
=> objects.Where(o => o.DistanceToPlayer() <= radius)
=> objects.Where(o => o.DistanceToPlayer() <= radius);

private static IEnumerable<BattleChara> DefaultTargetingType(IEnumerable<BattleChara> charas)
=> DataCenter.TargetingType switch
Expand Down
19 changes: 4 additions & 15 deletions RotationSolver/UI/RotationConfigWindow_Debug.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ private unsafe void DrawStatus()
{
ImGui.Text("Fate: " + DataCenter.FateId.ToString());
}
ImGui.Text("Moving: " + DataCenter.IsMoving.ToString());
ImGui.Text("Stop Moving: " + DataCenter.StopMovingRaw.ToString());


ImGui.Text("TerritoryType: " + DataCenter.TerritoryContentType.ToString());
ImGui.Text("DPSTaken: " + DataCenter.DPSTaken.ToString());
ImGui.Text("TimeToNext: " + DataCenter.NextAbilityToNextGCD.ToString());
Expand All @@ -71,28 +75,13 @@ private unsafe void DrawStatus()
}
private unsafe void DrawParty()
{
//var status = AgentDeepDungeonStatus.Instance();
//if ((IntPtr)status != IntPtr.Zero)
//{
// foreach (var item in status->Data->PomanderSpan)
// {
// ImGui.Text(item.Name.ToString() + " : " + item.ItemId.ToString());
// }

// foreach (var item in status->Data->MagiciteSpan)
// {
// ImGui.Text(item.Name.ToString() + " : " + item.ItemId.ToString());
// }
//}

ImGui.Text("Party Burst Ratio: " + DataCenter.RatioOfMembersIn2minsBurst.ToString());
ImGui.Text("Party: " + DataCenter.PartyMembers.Count().ToString());
ImGui.Text("CanHealSingleAbility: " + DataCenter.CanHealSingleAbility.ToString());
ImGui.Text("CanHealSingleSpell: " + DataCenter.CanHealSingleSpell.ToString());
ImGui.Text("CanHealAreaAbility: " + DataCenter.CanHealAreaAbility.ToString());
ImGui.Text("CanHealAreaSpell: " + DataCenter.CanHealAreaSpell.ToString());
ImGui.Text("CanHealAreaSpell: " + DataCenter.CanHealAreaSpell.ToString());

ImGui.Text("PartyMembersAverHP: " + DataCenter.PartyMembersAverHP.ToString());
}

Expand Down
5 changes: 2 additions & 3 deletions RotationSolver/Updaters/ActionUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ internal unsafe static void UpdateActionInfo()
UpdateWeaponTime();
UpdateCombatTime();
UpdateBluSlots();
UpdateMoving();
UpdateMPTimer();
}
private unsafe static void UpdateBluSlots()
Expand Down Expand Up @@ -186,9 +187,7 @@ private static unsafe void UpdateWeaponTime()

static uint _lastMP = 0;
static DateTime _lastMPUpdate = DateTime.Now;
/// <summary>
/// 跳蓝经过时间
/// </summary>

internal static float MPUpdateElapsed => (float)(DateTime.Now - _lastMPUpdate).TotalSeconds % 3;

private static void UpdateMPTimer()
Expand Down

0 comments on commit da82cda

Please sign in to comment.