mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 21:24:16 +01:00
chore: fix angry compiler
This commit is contained in:
parent
9a25946ec1
commit
5dcd1cc52f
3 changed files with 8 additions and 3 deletions
|
|
@ -219,7 +219,7 @@ internal class InventoryWidget : IDataWindowWidget
|
|||
|
||||
if (!this.IsEventItem(item.ItemId))
|
||||
{
|
||||
AddKeyValueRow(item.IsCollectable ? "Collectability" : "Spiritbond", item.Spiritbond.ToString());
|
||||
AddKeyValueRow(item.IsCollectable ? "Collectability" : "Spiritbond", item.SpiritbondOrCollectability.ToString());
|
||||
|
||||
if (item.CrafterContentId != 0)
|
||||
AddKeyValueRow("CrafterContentId", item.CrafterContentId.ToString());
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ internal class ContextMenuAgingStep : IAgingStep
|
|||
|
||||
return SelfTestStepResult.Waiting;
|
||||
}
|
||||
|
||||
|
||||
/// <inheritdoc/>
|
||||
public void CleanUp()
|
||||
{
|
||||
|
|
@ -244,7 +244,7 @@ internal class ContextMenuAgingStep : IAgingStep
|
|||
b.AppendLine($"Container: {item.ContainerType}");
|
||||
b.AppendLine($"Slot: {item.InventorySlot}");
|
||||
b.AppendLine($"Quantity: {item.Quantity}");
|
||||
b.AppendLine($"{(item.IsCollectable ? "Collectability" : "Spiritbond")}: {item.Spiritbond}");
|
||||
b.AppendLine($"{(item.IsCollectable ? "Collectability" : "Spiritbond")}: {item.SpiritbondOrCollectability}");
|
||||
b.AppendLine($"Condition: {item.Condition / 300f:0.00}% ({item.Condition})");
|
||||
b.AppendLine($"Is HQ: {item.IsHq}");
|
||||
b.AppendLine($"Is Company Crest Applied: {item.IsCompanyCrestApplied}");
|
||||
|
|
|
|||
|
|
@ -229,6 +229,11 @@ public static class SeStringExtensions
|
|||
builder.Clear().Append(replaced);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Convert a CStringPointer to a ReadOnySeStringSpan.
|
||||
/// </summary>
|
||||
/// <param name="ptr">The pointer to convert.</param>
|
||||
/// <returns>A span.</returns>
|
||||
public static unsafe ReadOnlySeStringSpan AsReadOnlySeStringSpan(this CStringPointer ptr)
|
||||
{
|
||||
return new ReadOnlySeStringSpan(ptr.Value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue