示例#1
0
 // Returns the price of a good based on a player's trade skill.
 private int AdjustPriceOnSkills(Good good)
 {
     return(Math.Max(good.Price(planetTech) - TradeSkillModifier, 1));
 }
示例#2
0
 // Gets the price for a specific type of Goods.
 public Int32 GetPrice(Good item)
 {
     return(purchasePrices.ContainsKey(item) ? purchasePrices[item] : Int32.MaxValue);
 }