mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Compare commits
3 commits
ac77bb1ebf
...
b3828febc6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b3828febc6 | ||
|
|
f3c826a54b | ||
|
|
fb229a0a12 |
3 changed files with 3 additions and 3 deletions
|
|
@ -77,7 +77,7 @@ internal unsafe class PlayerState : IServiceType, IPlayerState
|
|||
public RowRef<ClassJob> ClassJob => this.IsLoaded ? LuminaUtils.CreateRef<ClassJob>(CSPlayerState.Instance()->CurrentClassJobId) : default;
|
||||
|
||||
/// <inheritdoc/>
|
||||
public short Level => this.IsLoaded ? CSPlayerState.Instance()->CurrentLevel : default;
|
||||
public short Level => this.IsLoaded && this.ClassJob.IsValid ? this.GetClassJobLevel(this.ClassJob.Value) : this.EffectiveLevel;
|
||||
|
||||
/// <inheritdoc/>
|
||||
public bool IsLevelSynced => this.IsLoaded && CSPlayerState.Instance()->IsLevelSynced;
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ public interface IPlayerState : IDalamudService
|
|||
bool IsLevelSynced { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the effective level of the local character.
|
||||
/// Gets the effective level of the local character, taking level sync into account.
|
||||
/// </summary>
|
||||
short EffectiveLevel { get; }
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 5d01489c34f33a3d645f49085d7fc0065a1ac801
|
||||
Subproject commit 19a97b5ac364b51405097fe3a09af27a368f861a
|
||||
Loading…
Add table
Add a link
Reference in a new issue