public static uint GetReputationDiscountPct(StandingLevel lvl) { return(DiscountPercents.Get((uint)lvl)); }
public uint GetPriceForStandingLevel(StandingLevel lvl) { return((uint)Math.Floor(Template.SellPrice * (1 - Reputation.GetReputationDiscount(lvl)))); }
public uint GetPriceForStandingLevel( StandingLevel lvl ) { return (uint)Math.Floor( Template.SellPrice * ( 1 - Reputation.GetReputationDiscount( lvl ) ) ); }
public static uint GetReputationDiscountPct(StandingLevel lvl) { return DiscountPercents.Get((uint)lvl); }
/// <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); }