using System.Collections.Generic;
using System;
using Terraria;
namespace SoulHarvest.Common;
public readonly record struct DeathAltarPrice(int Amount, DeathAltarCurrency Currency)
{
public bool IsAvailable => Amount >= 0;
public static DeathAltarPrice Unavailable => new(-1, DeathAltarCurrency.SoulEssence);
public static DeathAltarPrice Souls(int amount) => new(amount, DeathAltarCurrency.Souls);
public static DeathAltarPrice Essence(int amount) => new(amount, DeathAltarCurrency.SoulEssence);
public static DeathAltarPrice RefundEssence(int amount) => new(amount, DeathAltarCurrency.SoulEssenceRefund);
}
using System.Collections.Generic;
using System;
using Terraria;
namespace SoulHarvest.Common;
public readonly record struct DeathAltarPrice(int Amount, DeathAltarCurrency Currency)
{
public bool IsAvailable => Amount >= 0;
public static DeathAltarPrice Unavailable => new(-1, DeathAltarCurrency.SoulEssence);
public static DeathAltarPrice Souls(int amount) => new(amount, DeathAltarCurrency.Souls);
public static DeathAltarPrice Essence(int amount) => new(amount, DeathAltarCurrency.SoulEssence);
public static DeathAltarPrice RefundEssence(int amount) => new(amount, DeathAltarCurrency.SoulEssenceRefund);
}