示例#1
0
    public string GetDefaultTokenPrice()
    {
        BUY_HOW  buyHow          = BUY_HOW.CASH_POINT;
        PriceTag defaultPriceTag = GetDefaultPriceTag(buyHow);

        if (defaultPriceTag == null)
        {
            return(string.Empty);
        }
        int percent = 0;

        if (BuildOption.Instance.Props.usePriceDiscount && tItem.type == TItem.TYPE.WEAPON)
        {
            TWeapon tWeapon = (TWeapon)tItem;
            percent = tWeapon.GetDiscountRatio();
        }
        return(defaultPriceTag.GetPriceString(buyHow, percent));
    }
示例#2
0
    public string GetDefaultBrickPrice()
    {
        BUY_HOW  buyHow          = BUY_HOW.BRICK_POINT;
        PriceTag defaultPriceTag = GetDefaultPriceTag(buyHow);

        if (defaultPriceTag == null)
        {
            return(string.Empty);
        }
        int percent = 0;

        if (tItem.type == TItem.TYPE.WEAPON)
        {
            TWeapon tWeapon = (TWeapon)tItem;
            percent = tWeapon.GetDiscountRatio();
        }
        return(defaultPriceTag.GetPriceString(buyHow, percent));
    }