Пример #1
0
        /// <summary>
        /// Returns the cost of this item after the reputation discount has been applied.
        /// </summary>
        public uint GetDiscountedCost(FactionReputationIndex reputationIndex, uint cost)
        {
            var lvl = GetStandingLevel(reputationIndex);

            return((cost * (100 - Reputation.GetReputationDiscountPct(lvl))) / 100);
        }
Пример #2
0
        /// <summary>
        /// Returns the cost of this item after the reputation discount has been applied.
        /// </summary>
        public uint GetDiscountedCost(FactionReputationIndex reputationIndex, uint cost)
        {
            StandingLevel standingLevel = this.GetStandingLevel(reputationIndex);

            return(cost * (100U - Reputation.GetReputationDiscountPct(standingLevel)) / 100U);
        }