mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-23 17:09:17 +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))
|
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)
|
if (item.CrafterContentId != 0)
|
||||||
AddKeyValueRow("CrafterContentId", item.CrafterContentId.ToString());
|
AddKeyValueRow("CrafterContentId", item.CrafterContentId.ToString());
|
||||||
|
|
|
||||||
|
|
@ -110,7 +110,7 @@ internal class ContextMenuAgingStep : IAgingStep
|
||||||
|
|
||||||
return SelfTestStepResult.Waiting;
|
return SelfTestStepResult.Waiting;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
public void CleanUp()
|
public void CleanUp()
|
||||||
{
|
{
|
||||||
|
|
@ -244,7 +244,7 @@ internal class ContextMenuAgingStep : IAgingStep
|
||||||
b.AppendLine($"Container: {item.ContainerType}");
|
b.AppendLine($"Container: {item.ContainerType}");
|
||||||
b.AppendLine($"Slot: {item.InventorySlot}");
|
b.AppendLine($"Slot: {item.InventorySlot}");
|
||||||
b.AppendLine($"Quantity: {item.Quantity}");
|
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($"Condition: {item.Condition / 300f:0.00}% ({item.Condition})");
|
||||||
b.AppendLine($"Is HQ: {item.IsHq}");
|
b.AppendLine($"Is HQ: {item.IsHq}");
|
||||||
b.AppendLine($"Is Company Crest Applied: {item.IsCompanyCrestApplied}");
|
b.AppendLine($"Is Company Crest Applied: {item.IsCompanyCrestApplied}");
|
||||||
|
|
|
||||||
|
|
@ -229,6 +229,11 @@ public static class SeStringExtensions
|
||||||
builder.Clear().Append(replaced);
|
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)
|
public static unsafe ReadOnlySeStringSpan AsReadOnlySeStringSpan(this CStringPointer ptr)
|
||||||
{
|
{
|
||||||
return new ReadOnlySeStringSpan(ptr.Value);
|
return new ReadOnlySeStringSpan(ptr.Value);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue