mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Compare commits
3 commits
22ee0280f4
...
844bbe7c69
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
844bbe7c69 | ||
|
|
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 e5f586630ef06fa48d5dc0d8c0fa679323093c77
|
||||
Subproject commit e5dedba42a3fea8f050ea54ac583a5874bf51c6f
|
||||
Loading…
Add table
Add a link
Reference in a new issue