Exemplo n.º 1
0
 public static uint GetReputationDiscountPct(StandingLevel lvl)
 {
     return(DiscountPercents.Get((uint)lvl));
 }
Exemplo n.º 2
0
 public uint GetPriceForStandingLevel(StandingLevel lvl)
 {
     return((uint)Math.Floor(Template.SellPrice * (1 - Reputation.GetReputationDiscount(lvl))));
 }
Exemplo n.º 3
0
		public uint GetPriceForStandingLevel( StandingLevel lvl )
		{
			return (uint)Math.Floor( Template.SellPrice * ( 1 - Reputation.GetReputationDiscount( lvl ) ) );
		}
Exemplo n.º 4
0
		public static uint GetReputationDiscountPct(StandingLevel lvl)
		{
			return DiscountPercents.Get((uint)lvl);
		}
Exemplo n.º 5
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);
        }