mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Fix IsChocoboTaxiStandUnlocked
This commit is contained in:
parent
ba159f8c5f
commit
62fdd2c60d
2 changed files with 8 additions and 8 deletions
|
|
@ -167,12 +167,12 @@ internal unsafe class UnlockState : IInternalDisposableService, IUnlockState
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
public bool IsChocoboTaxiUnlocked(ChocoboTaxi row)
|
public bool IsChocoboTaxiStandUnlocked(ChocoboTaxiStand row)
|
||||||
{
|
{
|
||||||
if (!this.IsLoaded)
|
if (!this.IsLoaded)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return UIState.Instance()->IsChocoboTaxiStandUnlocked(row.RowId);
|
return UIState.Instance()->IsChocoboTaxiStandUnlocked(row.RowId - 0x120000);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
|
|
@ -453,8 +453,8 @@ internal unsafe class UnlockState : IInternalDisposableService, IUnlockState
|
||||||
if (rowRef.TryGetValue<CharaMakeCustomize>(out var charaMakeCustomizeRow))
|
if (rowRef.TryGetValue<CharaMakeCustomize>(out var charaMakeCustomizeRow))
|
||||||
return this.IsCharaMakeCustomizeUnlocked(charaMakeCustomizeRow);
|
return this.IsCharaMakeCustomizeUnlocked(charaMakeCustomizeRow);
|
||||||
|
|
||||||
if (rowRef.TryGetValue<ChocoboTaxi>(out var chocoboTaxiRow))
|
if (rowRef.TryGetValue<ChocoboTaxiStand>(out var chocoboTaxiStandRow))
|
||||||
return this.IsChocoboTaxiUnlocked(chocoboTaxiRow);
|
return this.IsChocoboTaxiStandUnlocked(chocoboTaxiStandRow);
|
||||||
|
|
||||||
if (rowRef.TryGetValue<Companion>(out var companionRow))
|
if (rowRef.TryGetValue<Companion>(out var companionRow))
|
||||||
return this.IsCompanionUnlocked(companionRow);
|
return this.IsCompanionUnlocked(companionRow);
|
||||||
|
|
@ -723,7 +723,7 @@ internal class UnlockStatePluginScoped : IInternalDisposableService, IUnlockStat
|
||||||
public bool IsCharaMakeCustomizeUnlocked(CharaMakeCustomize row) => this.unlockStateService.IsCharaMakeCustomizeUnlocked(row);
|
public bool IsCharaMakeCustomizeUnlocked(CharaMakeCustomize row) => this.unlockStateService.IsCharaMakeCustomizeUnlocked(row);
|
||||||
|
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
public bool IsChocoboTaxiUnlocked(ChocoboTaxi row) => this.unlockStateService.IsChocoboTaxiUnlocked(row);
|
public bool IsChocoboTaxiStandUnlocked(ChocoboTaxiStand row) => this.unlockStateService.IsChocoboTaxiStandUnlocked(row);
|
||||||
|
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
public bool IsCompanionUnlocked(Companion row) => this.unlockStateService.IsCompanionUnlocked(row);
|
public bool IsCompanionUnlocked(Companion row) => this.unlockStateService.IsCompanionUnlocked(row);
|
||||||
|
|
|
||||||
|
|
@ -113,11 +113,11 @@ public interface IUnlockState
|
||||||
bool IsCharaMakeCustomizeUnlocked(CharaMakeCustomize row);
|
bool IsCharaMakeCustomizeUnlocked(CharaMakeCustomize row);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Determines whether the specified ChocoboTaxi (Chocobokeeps of the Chocobo Porter service) is unlocked.
|
/// Determines whether the specified ChocoboTaxiStand (Chocobokeeps of the Chocobo Porter service) is unlocked.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="row">The ChocoboTaxi row to check.</param>
|
/// <param name="row">The ChocoboTaxiStand row to check.</param>
|
||||||
/// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns>
|
/// <returns><see langword="true"/> if unlocked; otherwise, <see langword="false"/>.</returns>
|
||||||
bool IsChocoboTaxiUnlocked(ChocoboTaxi row);
|
bool IsChocoboTaxiStandUnlocked(ChocoboTaxiStand row);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Determines whether the specified Companion (Minions) is unlocked.
|
/// Determines whether the specified Companion (Minions) is unlocked.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue