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)); }
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)); }