コード例 #1
0
ファイル: Reputation.cs プロジェクト: NecroSharper/WCell
 public static uint GetReputationDiscountPct(StandingLevel lvl)
 {
     return(DiscountPercents.Get((uint)lvl));
 }
コード例 #2
0
ファイル: VendorItem.cs プロジェクト: NecroSharper/WCell
 public uint GetPriceForStandingLevel(StandingLevel lvl)
 {
     return((uint)Math.Floor(Template.SellPrice * (1 - Reputation.GetReputationDiscount(lvl))));
 }
コード例 #3
0
ファイル: VendorItem.cs プロジェクト: pallmall/WCell
		public uint GetPriceForStandingLevel( StandingLevel lvl )
		{
			return (uint)Math.Floor( Template.SellPrice * ( 1 - Reputation.GetReputationDiscount( lvl ) ) );
		}
コード例 #4
0
ファイル: Reputation.cs プロジェクト: WCellFR/WCellFR
		public static uint GetReputationDiscountPct(StandingLevel lvl)
		{
			return DiscountPercents.Get((uint)lvl);
		}
コード例 #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);
        }