Example #1
0
    public override string GetDescription()
    {
        string title;

        switch (GetRarity())
        {
        case "Common":
            title = "<color=#606060ff><b>Robe</b></color>   \n";
            break;

        case "Uncommon":
            title = "<color=green><b>Robe</b></color>   \n";
            break;

        case "Heroic":
            title = "<color=purple><b>Robe</b></color>   \n";
            break;

        case "Legendary":
            title = "<color=yellow><b>Robe</b></color>   \n";
            break;

        default:
            title = "<color=gray><b>Robe</b></color>   \n";
            break;
        }

        string line1 = GetRarity() + " " + GetLevel() + " level\n";

        float multiplier = GameObject.Find("Datas").GetComponent <Datas>().Get_AdvancementValues(GetLevel()) * (1f + GetStar() * 0.2f);

        string line2 = "  + " + Mathf.RoundToInt(armorValue * multiplier) + " " + ItemStatType.GetStatDescription(armorType) + "\n";
        string line3;
        string line4;

        if (mainStat1Type == mainStat2Type)
        {
            line3 = "  + " + Mathf.RoundToInt((mainStat1Value + mainStat2Value) * multiplier) + " " + ItemStatType.GetStatDescription(mainStat1Type) + "\n";
            line4 = "";
        }
        else
        {
            line3 = "  + " + Mathf.RoundToInt(mainStat1Value * multiplier) + " " + ItemStatType.GetStatDescription(mainStat1Type) + "\n";

            line4 = "  + " + Mathf.RoundToInt(mainStat2Value * multiplier) + " " + ItemStatType.GetStatDescription(mainStat2Type) + "\n";
        }
        string line5;

        if (secStatType == ItemStatType.Stats.HealthRegen)
        {
            line5 = "  + " + Mathf.RoundToInt(secStatValue * multiplier) + " " + ItemStatType.GetStatDescription(secStatType) + "\n";
        }
        else
        {
            line5 = "  + " + Mathf.RoundToInt(secStatValue * (1f + GetStar() * 0.2f)) + "% " + ItemStatType.GetStatDescription(secStatType) + "\n";
        }
        string all = title + line1 + line2 + line3 + line4 + line5;

        return(all);
    }
Example #2
0
    public override string GetDescription()
    {
        string title;

        switch (GetRarity())
        {
        case "Common":
            title = "<color=#606060ff><b>Staff</b></color>   \n";
            break;

        case "Uncommon":
            title = "<color=green><b>Staff</b></color>   \n";
            break;

        case "Heroic":
            title = "<color=purple><b>Staff</b></color>   \n";
            break;

        case "Legendary":
            title = "<color=yellow><b>Staff</b></color>   \n";
            break;

        default:
            title = "<color=gray><b>Staff</b></color>   \n";
            break;
        }

        string line1 = GetRarity() + " " + GetLevel() + " level\n";

        string line2;

        if (GetTwoHanded())
        {
            line2 = "Two-Hand\n";
        }
        else
        {
            line2 = "One-Hand\n";
        }

        float multiplier = GameObject.Find("Datas").GetComponent <Datas>().Get_AdvancementValues(GetLevel()) * (1f + GetStar() * 0.2f);

        int    minDmg = Mathf.CeilToInt(GetAttackDamage() * 0.8f);
        int    maxDmg = Mathf.CeilToInt(GetAttackDamage() * 1.2f);
        string line3  = "Damage: " + minDmg + " - " + maxDmg + "\n";

        string line4 = "Speed: " + GetAttackSpeed().ToString("0.00") + "\n";

        string line5 = "  + " + Mathf.RoundToInt(mainStatValue * multiplier) + " " + ItemStatType.GetStatDescription(mainStatType) + "\n";

        string line6 = "  + " + magicPowerMultiplier + "% Magic Power \n";

        string all = title + line1 + line2 + line3 + line4 + line5 + line6;

        return(all);
    }
Example #3
0
    public override string GetDescription()
    {
        string title;

        switch (GetRarity())
        {
        case "Common":
            title = "<color=#606060ff><b>Shield</b></color>   \n";
            break;

        case "Uncommon":
            title = "<color=green><b>Shield</b></color>   \n";
            break;

        case "Heroic":
            title = "<color=purple><b>Shield</b></color>   \n";
            break;

        case "Legendary":
            title = "<color=yellow><b>Shield</b></color>   \n";
            break;

        default:
            title = "<color=#6d6d6dff><b>Shield</b></color>   \n";
            break;
        }

        string line1 = GetRarity() + " " + GetLevel() + " level\n";

        float multiplier = GameObject.Find("Datas").GetComponent <Datas>().Get_AdvancementValues(GetLevel()) * (1f + GetStar() * 0.2f);

        string line2 = "  + " + Mathf.RoundToInt((armor1Value + armor2Value) * multiplier) + " " + ItemStatType.GetStatDescription(armor1Type) + "\n";

        string line3 = "  + " + Mathf.RoundToInt(mainStatValue * multiplier) + " " + ItemStatType.GetStatDescription(mainStatType) + "\n";


        string all = title + line1 + line2 + line3;

        return(all);
    }