Skip to content

Commit 56381df

Browse files
authored
api10 todo: fix cast times
1 parent 1d1b60b commit 56381df

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

Dalamud/Game/ClientState/Objects/Types/BattleChara.cs

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,10 @@ internal BattleChara(IntPtr address)
4040
public float CurrentCastTime => this.Struct->GetCastInfo()->CurrentCastTime;
4141

4242
/// <inheritdoc/>
43-
[Api10ToDo("Rename so it is not confused with AdjustedTotalCastTime")]
44-
public float TotalCastTime => this.Struct->GetCastInfo()->TotalCastTime;
43+
public float BaseCastTime => this.Struct->GetCastInfo()->BaseCastTime;
4544

4645
/// <inheritdoc/>
47-
[Api10ToDo("Rename so it is not confused with TotalCastTime")]
48-
public float AdjustedTotalCastTime => this.Struct->GetCastInfo()->AdjustedTotalCastTime;
46+
public float TotalCastTime => this.Struct->GetCastInfo()->TotalCastTime;
4947

5048
/// <summary>
5149
/// Gets the underlying structure.
@@ -94,19 +92,16 @@ public interface IBattleChara : ICharacter
9492
public float CurrentCastTime { get; }
9593

9694
/// <summary>
97-
/// Gets the total casting time of the spell being cast by the chara.
95+
/// Gets the base casting time of the spell being cast by the chara.
9896
/// </summary>
9997
/// <remarks>
10098
/// This can only be a portion of the total cast for some actions.
101-
/// Use AdjustedTotalCastTime if you always need the total cast time.
99+
/// Use TotalCastTime if you always need the total cast time.
102100
/// </remarks>
103-
public float TotalCastTime { get; }
101+
public float BaseCastTime { get; }
104102

105103
/// <summary>
106-
/// Gets the <see cref="TotalCastTime"/> plus any adjustments from the game, such as Action offset 2B. Used for display purposes.
104+
/// Gets the <see cref="BaseCastTime"/> plus any adjustments from the game, such as Action offset 2B. Used for display purposes.
107105
/// </summary>
108-
/// <remarks>
109-
/// This is the actual total cast time for all actions.
110-
/// </remarks>
111-
public float AdjustedTotalCastTime { get; }
106+
public float TotalCastTime { get; }
112107
}

0 commit comments

Comments
 (0)