public static bool buy(A_Talisman talisman, C_Hero hero)
        {
            int price = 0;

            string str = talisman.GetType().Name;

            str = str.Substring(str.Length - 2, 2);

            switch (str)
            {
            case "1S": price = 800; break;

            case "2M": price = 1600; break;

            case "3G": price = 3200; break;

            case "4U": price = 6400; break;
            }

            if (hero.gold >= price)
            {
                hero.inv_talismans.Add(talisman);
                findId(hero);
                hero.gold -= price;
                return(true);
            }
            return(false);
        }
        public static void sell(A_Talisman talisman, C_Hero hero)
        {
            int price = 0;

            string str = talisman.GetType().Name;

            str = str.Substring(str.Length - 2, 2);

            switch (str)
            {
            case "1S": price = 200; break;

            case "2M": price = 400; break;

            case "3G": price = 800; break;

            case "4U": price = 1600; break;
            }

            hero.gold += price;
            dell(hero, talisman);
            findId(hero);
        }