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

Commit

Permalink
fix: remove the custom recast time.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Jul 27, 2024
1 parent 2ef415d commit 4178733
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 25 deletions.
23 changes: 1 addition & 22 deletions ActionTimelineEx/Configurations/Actions/GCDAction.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
using ActionTimelineEx.Helpers;
using ECommons.DalamudServices;
using FFXIVClientStructs.FFXIV.Client.Game;
using ImGuiNET;
using System.ComponentModel;
using System.Numerics;
using XIVConfigUI.Attributes;
using Action = Lumina.Excel.GeneratedSheets.Action;

namespace ActionTimelineEx.Configurations.Actions;

Expand All @@ -14,26 +12,7 @@ public class GCDAction : ActionSetting
{
internal override ActionSettingType Type => ActionSettingType.Action;

internal float Gcd
{
get
{
var recastTime = Svc.Data.GetExcelSheet<Action>()?.GetRow(ActionId)?.Recast100ms ?? 0;

return GcdOverride == 0
? Plugin.Settings.RotationHelper.GcdTime / 2.5f * recastTime / 10f
: GcdOverride;
}
}

[JsonIgnore]
[Range(0, 20, ConfigUnitType.Seconds)]
[UI("Recast time override")]
public float GcdOverride
{
get => Plugin.Settings.ActionRecast.TryGetValue(ActionId, out var v) ? v : 0f;
set => Plugin.Settings.ActionRecast[ActionId] = value;
}
internal float Gcd => ActionManager.GetAdjustedRecastTime(FFXIVClientStructs.FFXIV.Client.Game.ActionType.Action, ActionId) / 1000f;

[UI]
public List<oGCDAction> oGCDs { get; set; } = [];
Expand Down
2 changes: 0 additions & 2 deletions ActionTimelineEx/Configurations/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,6 @@ internal RotationsSetting RotationHelper

private static readonly RotationsSetting EmptyHolder = new();

public Dictionary<uint, float> ActionRecast { get; set; } = [];

public int Version { get; set; } = 6;

public void Save()
Expand Down
2 changes: 1 addition & 1 deletion XIVConfigUI

0 comments on commit 4178733

Please sign in to comment.