Ejemplo n.º 1
0
        public static string PurchasableMessage(PurchaseInteraction PI)
        {
            string displayName = $"{PI.GetDisplayName()}";
            string cost        = PI.GetTextFromPurchasableType();
            string costColor   = PI.GetColorFromPurchasableType();

            if (PI.InteractableIsUsedUp())
            {
                if (PI.IsContainer())
                {
                    cost = "Opened";
                }
                else if (PI.IsShrine())
                {
                    cost = "Used";
                }
                else
                {
                    cost = "Unavailable";
                }
                costColor = RoR2Colors.Tier1ItemDark;
            }
            string message = $"<color={RoR2Colors.Tier1ItemDark}>{displayName}:</color> <color={costColor}>{cost}</color>";

            return(message);
        }