29 lines
705 B
C#
29 lines
705 B
C#
using System.Runtime.CompilerServices;
|
|
using FFXIVClientStructs.FFXIV.Client.Game.UI;
|
|
|
|
namespace Questionable.Model;
|
|
|
|
public sealed record FashionAccessoryReward : ItemReward
|
|
{
|
|
public uint AccessoryId { get; init; }
|
|
|
|
public override EItemRewardType Type => EItemRewardType.FashionAccessory;
|
|
|
|
public FashionAccessoryReward(ItemRewardDetails Item, uint AccessoryId)
|
|
{
|
|
this.AccessoryId = AccessoryId;
|
|
base._002Ector(Item);
|
|
}
|
|
|
|
public unsafe override bool IsUnlocked()
|
|
{
|
|
return PlayerState.Instance()->IsOrnamentUnlocked(AccessoryId);
|
|
}
|
|
|
|
[CompilerGenerated]
|
|
public void Deconstruct(out ItemRewardDetails Item, out uint AccessoryId)
|
|
{
|
|
Item = base.Item;
|
|
AccessoryId = this.AccessoryId;
|
|
}
|
|
}
|