Ejemplo n.º 1
0
    public string ReturnUpgradePrice(int index)
    {
        var result = "";

        if (isPetBuy[index].Equals(false))
        {
            result = shopMenu.ReturnShopPrice(string.Format("SH40{0}", index)).ToString();
        }
        else
        {
            switch (index)
            {
            case 0:
                result = TableData.Minipin_Jewel[petLevel[index]].ToString();
                break;

            case 1:
                result = TableData.Poodle_Jewel[petLevel[index]].ToString();
                break;

            case 2:
                result = TableData.Cat_Jewel[petLevel[index]].ToString();
                break;

            default:
                break;
            }
        }

        if (petLevel[index].Equals(TableData.Pet_Max_Level[index]))
        {
            result = PETMAXLEVEL_SIGN;
        }
        return(result);
    }