Exemplo n.º 1
0
        public string Summary()
        {
            var s = new StringBuilder();

            if (AddStatsOnEquip.NonZerosToString() != "``")
            {
                s.Append(AddStatsOnEquip.NonZerosToString());
                s.Append("\n");
            }
            if (MultStatsOnEquip.MultipliersToString() != "``")
            {
                s.Append(MultStatsOnEquip.MultipliersToString());
                s.Append("\n");
            }
            if (AddElStatsOnEquip.NonZerosToString() != "")
            {
                s.Append(AddElStatsOnEquip.NonZerosToString());
                s.Append("\n");
            }

            var various = new List <string>();

            if (HPRegen > 0)
            {
                various.Add($"HP Regen: {HPRegen}");
            }

            if (DamageAlignment != Element.none)
            {
                various.Add($"{GoldenSun.ElementIcons[DamageAlignment]}");
            }

            if (PPRegen > 0)
            {
                various.Add($"PP Regen: {PPRegen}");
            }

            if (IncreaseUnleashRate > 0)
            {
                various.Add($"Increases unleash Rate by {IncreaseUnleashRate}%");
            }

            if (IsUnleashable)
            {
                various.Add($"{(Category == ItemCategory.Weapon ? "" : $"{(GrantsUnleash ? "Adds an Effect to your Artifacts Unleash: " : $"{(ChanceToActivate < 100 ? $"{ChanceToActivate}% chance to target" : "Targets")} the wearer with an Effect: ")}")}{Unleash}{(!GrantsUnleash && ChanceToBreak > 0 && Category != ItemCategory.Weapon ? $"\n{ChanceToBreak}% chance to break on activation." : "")}");
Exemplo n.º 2
0
        public string Summary()
        {
            var s = new StringBuilder();

            if (AddStatsOnEquip.NonZerosToString() != "``")
            {
                s.Append(AddStatsOnEquip.NonZerosToString());
                s.Append("\n");
            }
            if (MultStatsOnEquip.MultipliersToString() != "``")
            {
                s.Append(MultStatsOnEquip.MultipliersToString());
                s.Append("\n");
            }
            if (AddElStatsOnEquip.NonZerosToString() != "")
            {
                s.Append(AddElStatsOnEquip.NonZerosToString());
                s.Append("\n");
            }

            var various = new List <string>();

            if (HPRegen > 0)
            {
                various.Add($"HP Regen: {HPRegen}");
            }

            if (DamageAlignment != Element.none)
            {
                various.Add($"{GoldenSun.ElementIcons[DamageAlignment]}");
            }

            if (PPRegen > 0)
            {
                various.Add($"PP Regen: {PPRegen}");
            }

            if (IncreaseUnleashRate > 0)
            {
                various.Add($"Increases unleash Rate by {IncreaseUnleashRate}%");
            }

            if (IsUnleashable)
            {
                various.Add($"{(Category == ItemCategory.Weapon ? "" : $"{(GrantsUnleash ? "Adds an Effect to your Artifacts Unleash: " : $"{(ChanceToActivate < 100 ? "May target" : "Targets")} the Wearer with an Effect: ")}")}{Unleash}");
            }

            if (CuresCurse)
            {
                various.Add($"Cures Curse");
            }

            if (IsCursed)
            {
                various.Add($"Cursed");
            }

            if (Name == "Lure Cap")
            {
                various.Add("This cap illuminates the area and will make you and your team find chests more easily. But watch out, it might attract more enemies!");
            }

            if (CanBeAnimated)
            {
                various.Add($"Polishable");
            }
            s.Append(string.Join(" | ", various));
            return(s.ToString());
        }